summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 19:45:56 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 19:45:56 +0300
commit2596b1c4a37e50be528049dcbfdbd506e9baced9 (patch)
tree8f094fe014e1410748385fa57be66cf95b23cabc /src/net
parentfc9391444b92f8334cbf9918e97cc3563dc52997 (diff)
downloadplus-2596b1c4a37e50be528049dcbfdbd506e9baced9.tar.gz
plus-2596b1c4a37e50be528049dcbfdbd506e9baced9.tar.bz2
plus-2596b1c4a37e50be528049dcbfdbd506e9baced9.tar.xz
plus-2596b1c4a37e50be528049dcbfdbd506e9baced9.zip
eathena: fix packet SMSG_PLAYER_STORAGE_REMOVE.
Diffstat (limited to 'src/net')
-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 cb4c6051c..0704e1600 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -711,7 +711,7 @@ void InventoryHandler::processPlayerStorageRemove(Net::MessageIn &msg)
BLOCK_START("InventoryHandler::processPlayerStorageRemove")
// Move an item out of storage
const int index = msg.readInt16("index") - STORAGE_OFFSET;
- const int amount = msg.readInt16("amount");
+ const int amount = msg.readInt32("amount");
if (mStorage)
{
if (Item *const item = mStorage->getItem(index))