summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 19:51:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 19:51:28 +0300
commit231838081449186df16337bbac53bd87e9e0f376 (patch)
tree650ff0a60a127110025adb9e0951bf0d0dacb98d /src/net/eathena
parent2596b1c4a37e50be528049dcbfdbd506e9baced9 (diff)
downloadplus-231838081449186df16337bbac53bd87e9e0f376.tar.gz
plus-231838081449186df16337bbac53bd87e9e0f376.tar.bz2
plus-231838081449186df16337bbac53bd87e9e0f376.tar.xz
plus-231838081449186df16337bbac53bd87e9e0f376.zip
eathena: fix reading packet SMSG_PLAYER_STORAGE_ITEMS.
Diffstat (limited to 'src/net/eathena')
-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++)
{