summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 0704e1600..0623bfd54 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -503,7 +503,7 @@ void InventoryHandler::processPlayerStorage(Net::MessageIn &msg)
msg.readInt16("len");
msg.readString(24, "storage name");
- const int number = (msg.getLength() - 4) / 23;
+ const int number = (msg.getLength() - 4 - 24) / 23;
for (int loop = 0; loop < number; loop++)
{