From ed907c859026ad2133858012b4798f7c074366c4 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 2 Apr 2009 13:15:13 +0200 Subject: Fixed an inventory offset that I missed previously When confirming item add for trade, the inventory offset was not substracted from the item index. --- src/net/ea/inventoryhandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/ea/inventoryhandler.cpp') diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 79e7d2da..423d2e9c 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -353,8 +353,8 @@ void InventoryHandler::moveItem(StorageType source, int slot, int amount, } else if (source == STORAGE && destination == INVENTORY) { - MessageOut outMsg(CSMG_MOVE_FROM_STORAGE); - outMsg.writeInt16(slot + STORAGE_OFFSET); - outMsg.writeInt32(amount); + MessageOut outMsg(CSMG_MOVE_FROM_STORAGE); + outMsg.writeInt16(slot + STORAGE_OFFSET); + outMsg.writeInt32(amount); } } -- cgit v1.2.3-70-g09d2