diff options
-rw-r--r-- | Changelog-Trunk.txt | 3 | ||||
-rw-r--r-- | src/map/mob.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c6ea229e9..aa6bee75e 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -5,6 +5,9 @@ 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]:
- list and size not being initialized (size get intialized in default: switch case)
diff --git a/src/map/mob.c b/src/map/mob.c index 3201b769c..ab25d1779 100644 --- a/src/map/mob.c +++ b/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. |