From 65e4adfc4f90aa087b7cde089029636257761a36 Mon Sep 17 00:00:00 2001 From: Fate Date: Wed, 17 Jun 2009 19:37:01 +0000 Subject: Added extra checks to ensure spell invocations aren't incorrectly deleted --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index af56cab..3a777ac 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9225,7 +9225,7 @@ int skill_delunit(struct skill_unit *unit) unit->group=NULL; unit->alive=0; - map_delobjectnofree(unit->bl.id); + map_delobjectnofree(unit->bl.id, BL_SKILL); if(group->alive_count>0 && (--group->alive_count)<=0) skill_delunitgroup(group); -- cgit v1.2.3-70-g09d2