summaryrefslogtreecommitdiff
path: root/src/emap/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-19 16:55:28 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-19 16:55:28 +0300
commit2a2edf5da86b7a5847f62242744376e7a9b304c7 (patch)
tree654c514a6f6291e10e6a310482d126524a3e40a4 /src/emap/status.c
parentb95b22472c0ddc0ccacd10928437bd245b016f99 (diff)
downloadevol-hercules-2a2edf5da86b7a5847f62242744376e7a9b304c7.tar.gz
evol-hercules-2a2edf5da86b7a5847f62242744376e7a9b304c7.tar.bz2
evol-hercules-2a2edf5da86b7a5847f62242744376e7a9b304c7.tar.xz
evol-hercules-2a2edf5da86b7a5847f62242744376e7a9b304c7.zip
Fix compilation errors after last changes.
Diffstat (limited to 'src/emap/status.c')
-rw-r--r--src/emap/status.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index 935a2a4..dd9c46a 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -76,9 +76,12 @@ int estatus_calc_pc_(int retVal,
int estatus_calc_pc_additional(struct map_session_data* sd,
enum e_status_calc_opt *opt __attribute__ ((unused)))
{
+ int f;
+ int k;
+
hookStop();
- for (int f = 0; f < MAX_INVENTORY; f ++)
+ for (f = 0; f < MAX_INVENTORY; f ++)
{
struct item_data *const item = sd->inventory_data[f];
if (!item)
@@ -88,7 +91,6 @@ int estatus_calc_pc_additional(struct map_session_data* sd,
if (!data || !data->charmItem)
continue;
- int k;
for (k = 0; k < map->list[sd->bl.m].zone->disabled_items_count; k ++)
{
if (map->list[sd->bl.m].zone->disabled_items[k] == item->nameid)