summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-25 11:07:30 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-25 11:07:30 +0000
commit5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0 (patch)
tree3bfbc2cf0e6f3a9ff4520db84d30b50e257fb281 /src/map/map.c
parent0ad60ff7f298f886be2c05955edd51cb50b58f0d (diff)
downloadhercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.tar.gz
hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.tar.bz2
hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.tar.xz
hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.zip
Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.
If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in UNT_WARP_WAITING and will destroy it. [Toms] ( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102 when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE ) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8478 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index c3e7d8f67..a668ecad8 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3623,7 +3623,7 @@ int cleanup_sub(struct block_list *bl, va_list ap) {
map_clearflooritem(bl->id);
break;
case BL_SKILL:
- skill_delunit((struct skill_unit *) bl);
+ skill_delunit((struct skill_unit *) bl, 1);
break;
}