summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 02:03:22 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 02:03:22 +0000
commit7bfe279684f65846e4c2255b5ee55551d2ab0656 (patch)
tree1c9c7487956ae41faf5ea8f3a010f4f45dc587f3 /src/map/mob.c
parent25fa4732d5f58eb41bb3b4d6284cc2485656ecaa (diff)
downloadhercules-7bfe279684f65846e4c2255b5ee55551d2ab0656.tar.gz
hercules-7bfe279684f65846e4c2255b5ee55551d2ab0656.tar.bz2
hercules-7bfe279684f65846e4c2255b5ee55551d2ab0656.tar.xz
hercules-7bfe279684f65846e4c2255b5ee55551d2ab0656.zip
* [Fixed]:
- temp++ gets issued before if(mvp_damage<(unsigned int)md->dmglog[i].dmg) in mob_damage. Thanks to seahorsix. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7023 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 2 insertions, 1 deletions
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.