From b1d33ee7d320d273a6bc44c568baa6cd0dd1e373 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 5 May 2006 04:14:51 +0000 Subject: - Fixed a possible infinite loop in skill_clear_unit_group git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6483 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/skill.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index a9e82477b..36725f1d2 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/05/04 + * Fixed a possible infinite loop in skill_clear_unit_group [Skotlex] * Some clean-ups in the mob_ai [Skotlex] * Improved atcommand autoloot, now displays droprate in percents and notices player if autoloot is already on or off. Also simplified the code [Harbin, Kain], diff --git a/src/map/skill.c b/src/map/skill.c index ac9dbcea7..216132567 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9458,8 +9458,6 @@ int skill_delunitgroup(struct block_list *src, struct skill_unit_group *group) int i,j; nullpo_retr(0, group); - if(group->unit_count<=0) - return 0; if (!src) src=map_id2bl(group->src_id); ud = unit_bl2ud(src); -- cgit v1.2.3-70-g09d2