diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-17 22:11:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-17 22:11:13 +0300 |
commit | 9a40e1202946e3384500da28668a52d28ad377f4 (patch) | |
tree | 6b031263af767043249c8aa8b733e1cc84a0aa85 /src/net/ea/inventoryhandler.cpp | |
parent | cd7c69edecf4b04ad7c2b40092d29b0444acfa28 (diff) | |
download | manaplus-9a40e1202946e3384500da28668a52d28ad377f4.tar.gz manaplus-9a40e1202946e3384500da28668a52d28ad377f4.tar.bz2 manaplus-9a40e1202946e3384500da28668a52d28ad377f4.tar.xz manaplus-9a40e1202946e3384500da28668a52d28ad377f4.zip |
Add static in inventoryhandler.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 2c8c64cda..f4250efc5 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -88,14 +88,22 @@ const Equipment::Slot EQUIP_CONVERT[] = namespace Ea { -InventoryHandler::InventoryHandler() : - mEquips(), - mInventoryItems(), - mStorage(nullptr), - mStorageWindow(nullptr), - mDebugInventory(true), - mSentPickups() +EquipBackend InventoryHandler::mEquips; +InventoryItems InventoryHandler::mInventoryItems; +Inventory *InventoryHandler::mStorage = nullptr; +InventoryWindow *InventoryHandler::mStorageWindow = nullptr; +PickupQueue InventoryHandler::mSentPickups; +bool InventoryHandler::mDebugInventory = true; + +InventoryHandler::InventoryHandler() { + mEquips.clear(); + mInventoryItems.clear(); + mStorage = nullptr; + mStorageWindow = nullptr; + while (!mSentPickups.empty()) + mSentPickups.pop(); + mDebugInventory = true; } InventoryHandler::~InventoryHandler() |