diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 19:51:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 19:51:28 +0300 |
commit | 231838081449186df16337bbac53bd87e9e0f376 (patch) | |
tree | 650ff0a60a127110025adb9e0951bf0d0dacb98d /src/net | |
parent | 2596b1c4a37e50be528049dcbfdbd506e9baced9 (diff) | |
download | plus-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')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 2 |
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++) { |