summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 13:15:13 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 13:29:11 +0200
commited907c859026ad2133858012b4798f7c074366c4 (patch)
tree6c1e0d878b8ee6f782b470a10c93b1411cc56247 /src/net/ea/inventoryhandler.cpp
parent42c63de10f16c7d12955b653fc2e3a7743799551 (diff)
downloadmana-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.cpp6
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);
}
}