From 3f5c128b889b4cb41f9782fe1531c55e7d07432f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Jan 2015 15:31:06 +0300 Subject: Move inventory type into separate file. --- src/net/tmwa/inventoryhandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/tmwa/inventoryhandler.cpp') 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(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(slot + STORAGE_OFFSET), -- cgit v1.2.3-60-g2f50