summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 15:31:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 15:31:06 +0300
commit3f5c128b889b4cb41f9782fe1531c55e7d07432f (patch)
treeb5903e10142f876d29bf4d4643261f1b058fefe9 /src/net/tmwa/inventoryhandler.cpp
parentc53839e9125a72e2bbc5e479934b5b9111bef5d6 (diff)
downloadplus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.gz
plus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.bz2
plus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.xz
plus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.zip
Move inventory type into separate file.
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index 8fa8a497e..7821d9aca 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -223,15 +223,15 @@ void InventoryHandler::closeStorage(const int type A_UNUSED) const
void InventoryHandler::moveItem2(const int source, const int slot,
const int amount, const int destination) const
{
- if (source == Inventory::INVENTORY && destination == Inventory::STORAGE)
+ if (source == InventoryType::INVENTORY && destination == InventoryType::STORAGE)
{
createOutPacket(CMSG_MOVE_TO_STORAGE);
outMsg.writeInt16(static_cast<int16_t>(slot + INVENTORY_OFFSET),
"index");
outMsg.writeInt32(amount, "amount");
}
- else if (source == Inventory::STORAGE
- && destination == Inventory::INVENTORY)
+ else if (source == InventoryType::STORAGE
+ && destination == InventoryType::INVENTORY)
{
createOutPacket(CSMG_MOVE_FROM_STORAGE);
outMsg.writeInt16(static_cast<int16_t>(slot + STORAGE_OFFSET),