- Fixed (likely) deleting homs from the menu causing a double free'd error.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9362 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-11-29 16:32:50 +00:00
parent 19b4efdc6c
commit 02330c9d81

View File

@ -114,7 +114,7 @@ int merc_hom_delete(struct homun_data *hd, int emote)
// Send homunculus_dead to client // Send homunculus_dead to client
hd->homunculus.hp = 0; hd->homunculus.hp = 0;
clif_hominfo(sd, hd, 0); clif_hominfo(sd, hd, 0);
return unit_free(&hd->bl,0); return unit_remove_map(&hd->bl,0);
} }
int merc_hom_calc_skilltree(struct homun_data *hd) int merc_hom_calc_skilltree(struct homun_data *hd)