Explorar el Código

* [Fixed]:
- temp++ gets issued before if(mvp_damage<(unsigned int)md->dmglog[i].dmg) in mob_damage. Thanks to seahorsix.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7023 54d463be-8e91-2dee-dedb-b68131a5f0ec

Lance hace 19 años
padre
commit
f5b5288a32
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  1. 3 0
      Changelog-Trunk.txt
  2. 2 1
      src/map/mob.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ 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/06/07
+	* [Fixed]:
+	  - temp++ gets issued before if(mvp_damage<(unsigned int)md->dmglog[i].dmg) in
+	    mob_damage. Thanks to seahorsix. [Lance]
 	* [Fixed]:
 	  - Corrected login-server SQL to use *((ulong *)p) instead of (ulong)p [Lance]
 	* [Optimized]:

+ 2 - 1
src/map/mob.c

@@ -1733,7 +1733,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 			continue;
 		if(tmpsd[temp]->bl.m != md->bl.m || pc_isdead(tmpsd[temp]))
 			continue;
-		temp++;
 
 		if(mvp_damage<(unsigned int)md->dmglog[i].dmg){
 			third_sd = second_sd;
@@ -1741,6 +1740,8 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 			mvp_sd=tmpsd[temp];
 			mvp_damage=md->dmglog[i].dmg;
 		}
+
+		temp++; // [Lance]
 	}
 	count = i; //Total number of attackers.