diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-03-02 02:14:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-03-02 02:14:49 +0300 |
commit | 6c894cb2c8cd64cbef663ea235c51dea4ce58cd5 (patch) | |
tree | 8aea65e065cdf769fe479614fdac8698be8eb5b1 /src/net/eathena/inventoryhandler.cpp | |
parent | ad8f6fd4136646e251e3d79cef7b7db110364a9b (diff) | |
download | manaverse-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.tar.gz manaverse-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.tar.bz2 manaverse-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.tar.xz manaverse-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.zip |
Impliment packet SMSG_INVENTORY_START 0x0b08
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) |