From 5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0 Mon Sep 17 00:00:00 2001 From: toms Date: Fri, 25 Aug 2006 11:07:30 +0000 Subject: 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 --- src/map/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/map.c') 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; } -- cgit v1.2.3-60-g2f50