diff options
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 67a91edfb..5ec7b4465 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -26,6 +26,8 @@ #include "enums/equipslot.h" +#include "net/ea/inventoryrecv.h" + #include "net/eathena/inventoryrecv.h" #include "net/eathena/menu.h" #include "net/eathena/messageout.h" @@ -76,6 +78,7 @@ InventoryHandler::InventoryHandler() : { inventoryHandler = this; + InventoryRecv::mInventoryItems.clear(); InventoryRecv::mCartItems.clear(); } @@ -84,6 +87,14 @@ InventoryHandler::~InventoryHandler() inventoryHandler = nullptr; } +void InventoryHandler::clear() const +{ + Ea::InventoryHandler::clear(); + Ea::InventoryRecv::mStorageItems.clear(); + InventoryRecv::mInventoryItems.clear(); + InventoryRecv::mCartItems.clear(); +} + void InventoryHandler::equipItem(const Item *const item) const { if (item == nullptr) |