From 6c894cb2c8cd64cbef663ea235c51dea4ce58cd5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Mar 2019 02:14:49 +0300 Subject: Impliment packet SMSG_INVENTORY_START 0x0b08 --- src/net/eathena/inventoryhandler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') 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) -- cgit v1.2.3-70-g09d2