From 4ea2f6554e5d10287c6f00007103ab3ca4394d55 Mon Sep 17 00:00:00 2001 From: toms Date: Tue, 15 Aug 2006 12:02:00 +0000 Subject: Fixed SIGSEGV with homunc save git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8288 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/unit.c b/src/map/unit.c index 90095d13a..7d4af0dfb 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1784,8 +1784,6 @@ int unit_free(struct block_list *bl) { merc_hom_hungry_timer_delete(hd); merc_natural_heal_timer_delete(hd); if(sd) { - sd->hd = NULL; - hd->master = NULL; if (sd->homunculus.intimacy > 0) merc_save(hd); else @@ -1794,6 +1792,8 @@ int unit_free(struct block_list *bl) { sd->status.hom_id = 0; sd->homunculus.hom_id = 0; } + sd->hd = NULL; + hd->master = NULL; } } -- cgit v1.2.3-70-g09d2