summaryrefslogtreecommitdiff
path: root/src/emap/pc.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/pc.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/pc.c')
-rw-r--r--src/emap/pc.c5
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)