From 2a2edf5da86b7a5847f62242744376e7a9b304c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Aug 2015 16:55:28 +0300 Subject: Fix compilation errors after last changes. --- src/emap/pc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/emap/pc.c') 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) -- cgit v1.2.3-60-g2f50