summaryrefslogtreecommitdiff
path: root/src/emap/pc.c
diff options
context:
space:
mode:
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)