summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-02 02:14:49 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-02 02:14:49 +0300
commit6c894cb2c8cd64cbef663ea235c51dea4ce58cd5 (patch)
tree8aea65e065cdf769fe479614fdac8698be8eb5b1 /src/net/ea/inventoryrecv.cpp
parentad8f6fd4136646e251e3d79cef7b7db110364a9b (diff)
downloadplus-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.tar.gz
plus-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.tar.bz2
plus-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.tar.xz
plus-6c894cb2c8cd64cbef663ea235c51dea4ce58cd5.zip
Impliment packet SMSG_INVENTORY_START 0x0b08
Diffstat (limited to 'src/net/ea/inventoryrecv.cpp')
-rw-r--r--src/net/ea/inventoryrecv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/inventoryrecv.cpp b/src/net/ea/inventoryrecv.cpp
index 9cc43e42a..51ac4c6e5 100644
--- a/src/net/ea/inventoryrecv.cpp
+++ b/src/net/ea/inventoryrecv.cpp
@@ -50,7 +50,7 @@ namespace Ea
namespace InventoryRecv
{
EquipBackend mEquips;
- InventoryItems mInventoryItems;
+ InventoryItems mStorageItems;
Inventory *mStorage = nullptr;
PickupQueue mSentPickups;
bool mDebugInventory = true;
@@ -99,7 +99,7 @@ void InventoryRecv::processPlayerStorageStatus(Net::MessageIn &msg)
if (mStorage == nullptr)
mStorage = new Inventory(InventoryType::Storage, size);
- FOR_EACH (Ea::InventoryItems::const_iterator, it, mInventoryItems)
+ FOR_EACH (Ea::InventoryItems::const_iterator, it, mStorageItems)
{
mStorage->setItem((*it).slot,
(*it).id,
@@ -113,7 +113,7 @@ void InventoryRecv::processPlayerStorageStatus(Net::MessageIn &msg)
(*it).equip,
Equipped_false);
}
- mInventoryItems.clear();
+ mStorageItems.clear();
if (storageWindow == nullptr)
{