diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 13:15:13 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 13:29:11 +0200 |
commit | ed907c859026ad2133858012b4798f7c074366c4 (patch) | |
tree | 6c1e0d878b8ee6f782b470a10c93b1411cc56247 /src/net/ea/inventoryhandler.cpp | |
parent | 42c63de10f16c7d12955b653fc2e3a7743799551 (diff) | |
download | mana-ed907c859026ad2133858012b4798f7c074366c4.tar.gz mana-ed907c859026ad2133858012b4798f7c074366c4.tar.bz2 mana-ed907c859026ad2133858012b4798f7c074366c4.tar.xz mana-ed907c859026ad2133858012b4798f7c074366c4.zip |
Fixed an inventory offset that I missed previously
When confirming item add for trade, the inventory offset was not
substracted from the item index.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |