From b8cefc6866eaaf336270907c13c377744e14b028 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Mar 2016 15:43:20 +0300 Subject: Fix reading packet SMSG_PLAYER_STORAGE_REMOVE (tmwa) --- src/net/tmwa/inventoryrecv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/tmwa/inventoryrecv.cpp') 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)) -- cgit v1.2.3-60-g2f50