Jelajahi Sumber

- Fixed a possible infinite loop in skill_clear_unit_group

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6483 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 tahun lalu
induk
melakukan
de9460b3ee
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 0
      Changelog-Trunk.txt
  2. 0 2
      src/map/skill.c

+ 1 - 0
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],

+ 0 - 2
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);