summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-06-17 19:37:01 +0000
committerFate <fate-tmw@googlemail.com>2009-06-17 19:37:01 +0000
commit65e4adfc4f90aa087b7cde089029636257761a36 (patch)
tree79796c7ff6ff92712c8b5c028d4c2347f7407314 /src/map/skill.c
parent7fcff757d7896c321a3ae5c6c4c4195031265b43 (diff)
downloadtmwa-65e4adfc4f90aa087b7cde089029636257761a36.tar.gz
tmwa-65e4adfc4f90aa087b7cde089029636257761a36.tar.bz2
tmwa-65e4adfc4f90aa087b7cde089029636257761a36.tar.xz
tmwa-65e4adfc4f90aa087b7cde089029636257761a36.zip
Added extra checks to ensure spell invocations aren't incorrectly deleted
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
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);