summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-17 15:43:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-17 15:43:20 +0300
commitb8cefc6866eaaf336270907c13c377744e14b028 (patch)
tree4050c881408790fbbee4823391902c10307eb60f /src/net/tmwa/inventoryrecv.cpp
parent879366f5dcc9362bd5e589bd70a013ea87d64430 (diff)
downloadManaVerse-b8cefc6866eaaf336270907c13c377744e14b028.tar.gz
ManaVerse-b8cefc6866eaaf336270907c13c377744e14b028.tar.bz2
ManaVerse-b8cefc6866eaaf336270907c13c377744e14b028.tar.xz
ManaVerse-b8cefc6866eaaf336270907c13c377744e14b028.zip
Fix reading packet SMSG_PLAYER_STORAGE_REMOVE (tmwa)
Diffstat (limited to 'src/net/tmwa/inventoryrecv.cpp')
-rw-r--r--src/net/tmwa/inventoryrecv.cpp2
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))