From 02330c9d8116827fd34389fe70fa173f870c1341 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 29 Nov 2006 16:32:50 +0000 Subject: [PATCH] - 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 --- 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 91446580d1..ccdc24361b 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)