summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index bc7ef80..0068ab3 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -4662,8 +4662,8 @@ int pc_checkitem(dumb_ptr<map_session_data> sd)
}
j++;
}
- while (j < MAX_INVENTORY)
- sd->status.inventory[j++] = item{};
+ for (k = j; k < MAX_INVENTORY; ++k)
+ sd->status.inventory[k] = item{};
for (k = j; k < MAX_INVENTORY; k++)
sd->inventory_data[k] = NULL;