summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-13 23:28:38 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-13 23:28:38 +0000
commitdde2e2fa9619a504765b676caa3ac0b05b67cfbc (patch)
tree621ab66ad574f1726c7cb66640daf5eb9034e391 /src/map/status.c
parentb9de9046df71b8e8c0e44a1f8eba931262f7f8e7 (diff)
downloadhercules-dde2e2fa9619a504765b676caa3ac0b05b67cfbc.tar.gz
hercules-dde2e2fa9619a504765b676caa3ac0b05b67cfbc.tar.bz2
hercules-dde2e2fa9619a504765b676caa3ac0b05b67cfbc.tar.xz
hercules-dde2e2fa9619a504765b676caa3ac0b05b67cfbc.zip
- Fixed a compilation warning
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12071 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 56d68bbfe..655944555 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6791,9 +6791,9 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
bool flag;
map_freeblock_lock();
status_zap(bl, sce->val4, 0);
- flag = sc->data[type]; //We check for this rather than 'killed' since the target could have revived with kaizel.
+ flag = !sc->data[type]; //We check for this rather than 'killed' since the target could have revived with kaizel.
map_freeblock_unlock();
- if (!flag) return 0; //target died, SC cancelled already.
+ if (flag) return 0; //target died, SC cancelled already.
}
sc_timer_next(1000 + tick, status_change_timer, bl->id, data );
return 0;
@@ -6812,9 +6812,9 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
int flag;
map_freeblock_lock();
status_fix_damage(NULL, bl, rand()%600 + 200, 0);
- flag = sc->data[type];
+ flag = !sc->data[type];
map_freeblock_unlock();
- if (!flag) return 0; //SC already ended.
+ if (flag) return 0; //SC already ended.
sc_timer_next(10000 + tick, status_change_timer, bl->id, data);
return 0;
}