From a33f7874d58bbb99fdfc5d07c30e4aabdba91791 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 29 Nov 2006 16:32:50 +0000 Subject: - Fixed (likely) deleting homs from the menu causing a double free'd error. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9362 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mercenary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 91446580d..ccdc24361 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -114,7 +114,7 @@ int merc_hom_delete(struct homun_data *hd, int emote) // Send homunculus_dead to client hd->homunculus.hp = 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) -- cgit v1.2.3-70-g09d2