summaryrefslogtreecommitdiff
path: root/src/emap/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/status.c')
-rw-r--r--src/emap/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index f782057..636a620 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -118,7 +118,7 @@ void estatus_calc_pc_additional_pre(struct map_session_data **sdPtr,
return;
}
- for (f = 0; f < MAX_INVENTORY; f ++)
+ for (f = 0; f < sd->status.inventorySize; f ++)
{
struct item_data *const item = sd->inventory_data[f];
if (!item)