diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-19 16:55:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-19 16:55:28 +0300 |
commit | 2a2edf5da86b7a5847f62242744376e7a9b304c7 (patch) | |
tree | 654c514a6f6291e10e6a310482d126524a3e40a4 /src/emap/pc.c | |
parent | b95b22472c0ddc0ccacd10928437bd245b016f99 (diff) | |
download | evol-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/pc.c')
-rw-r--r-- | src/emap/pc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c index f5c22c6..d116a41 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -423,6 +423,7 @@ int epc_delitem_post(int retVal, bool epc_can_insert_card_into_post(bool retVal, struct map_session_data* sd, int *idx_card, int *idx_equip) { + int f; if (retVal) { struct ItemdExt *data = itemd_get(sd->inventory_data[*idx_equip]); @@ -432,7 +433,7 @@ bool epc_can_insert_card_into_post(bool retVal, struct map_session_data* sd, const int newCardId = sd->status.inventory[*idx_card].nameid; int cardAmountLimit = 0; - for (int f = 0; f < 100 && data->allowedCards[f].id; f ++) + for (f = 0; f < 100 && data->allowedCards[f].id; f ++) { if (data->allowedCards[f].id == newCardId) { @@ -445,7 +446,7 @@ bool epc_can_insert_card_into_post(bool retVal, struct map_session_data* sd, int cardsAmount = 0; const int slots = sd->inventory_data[*idx_equip]->slot; - for (int f = 0; f < slots; f ++) + for (f = 0; f < slots; f ++) { const int cardId = sd->status.inventory[*idx_equip].card[f]; if (cardId == newCardId) |