summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-26 16:48:41 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-26 20:27:14 +0300
commit7cc1daf0c11cddce59392263e19eefed42ee6e3a (patch)
treee3cc1e039917dfa67b21de1bf7ba2fab1176ceb7 /src/map/status.c
parenta576c4effdb7b79d7db9b3a178d6e811a7ae82c2 (diff)
downloadhercules-7cc1daf0c11cddce59392263e19eefed42ee6e3a.tar.gz
hercules-7cc1daf0c11cddce59392263e19eefed42ee6e3a.tar.bz2
hercules-7cc1daf0c11cddce59392263e19eefed42ee6e3a.tar.xz
hercules-7cc1daf0c11cddce59392263e19eefed42ee6e3a.zip
Fix compilation errors and possible server crash from previous commits.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 3c2aeb939..d3fa25aaa 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -8636,8 +8636,9 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
case SC__ENERVATION:
val2 = 20 + 10 * val1; // ATK Reduction
if ( sd ) {
+ int i;
pc->delspiritball(sd, sd->spiritball, 0);
- for ( int i = SPIRITS_TYPE_CHARM_WATER; i < SPIRITS_TYPE_SPHERE; i++ )
+ for (i = SPIRITS_TYPE_CHARM_WATER; i < SPIRITS_TYPE_SPHERE; i++)
pc->del_charm(sd, sd->spiritcharm[i], i);
}
break;