summaryrefslogtreecommitdiff
path: root/src/net/ea/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/ea/inventoryhandler.cpp
parentc53839e9125a72e2bbc5e479934b5b9111bef5d6 (diff)
downloadmv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.gz
mv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.bz2
mv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.xz
mv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.zip
Move inventory type into separate file.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r--src/net/ea/inventoryhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index 1be2e5be2..e81b0a490 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -130,14 +130,14 @@ size_t InventoryHandler::getSize(const int type) const
{
switch (type)
{
- case Inventory::INVENTORY:
+ case InventoryType::INVENTORY:
return 100;
- case Inventory::STORAGE:
+ case InventoryType::STORAGE:
return 0; // Comes from server after items
- case Inventory::TRADE:
+ case InventoryType::TRADE:
return 12;
// GUILD_STORAGE
- case Inventory::TYPE_END:
+ case InventoryType::TYPE_END:
return 0; // Comes from server after items
default:
return 0;
@@ -248,7 +248,7 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg)
const int size = msg.readInt16("max size");
if (!mStorage)
- mStorage = new Inventory(Inventory::STORAGE, size);
+ mStorage = new Inventory(InventoryType::STORAGE, size);
FOR_EACH (Ea::InventoryItems::const_iterator, it, mInventoryItems)
{