diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-17 15:43:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-17 15:43:20 +0300 |
commit | b8cefc6866eaaf336270907c13c377744e14b028 (patch) | |
tree | 4050c881408790fbbee4823391902c10307eb60f /src/net | |
parent | 879366f5dcc9362bd5e589bd70a013ea87d64430 (diff) | |
download | plus-b8cefc6866eaaf336270907c13c377744e14b028.tar.gz plus-b8cefc6866eaaf336270907c13c377744e14b028.tar.bz2 plus-b8cefc6866eaaf336270907c13c377744e14b028.tar.xz plus-b8cefc6866eaaf336270907c13c377744e14b028.zip |
Fix reading packet SMSG_PLAYER_STORAGE_REMOVE (tmwa)
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/inventoryrecv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/inventoryrecv.cpp b/src/net/tmwa/inventoryrecv.cpp index 1bc89676a..30e30502d 100644 --- a/src/net/tmwa/inventoryrecv.cpp +++ b/src/net/tmwa/inventoryrecv.cpp @@ -481,7 +481,7 @@ void InventoryRecv::processPlayerStorageRemove(Net::MessageIn &msg) BLOCK_START("InventoryRecv::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 (Ea::InventoryRecv::mStorage) { if (Item *const item = Ea::InventoryRecv::mStorage->getItem(index)) |