summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index 33f98289a..5cd362b14 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -475,7 +475,7 @@ void InventoryRecv::processPlayerStorageEquip(Net::MessageIn &msg)
sz = 57;
else
sz = 31;
- const int number = (msg.getLength() - 4 - 24) / 31;
+ const int number = (msg.getLength() - 4 - 24) / sz;
msg.readString(24, "storage name");
for (int loop = 0; loop < number; loop++)