diff --git a/Source/Client/Session.cpp b/Source/Client/Session.cpp index 3855a9e4..6367caa6 100644 --- a/Source/Client/Session.cpp +++ b/Source/Client/Session.cpp @@ -2301,6 +2301,17 @@ void CSession::ResetCharacterState() { traitStats[0xE6] = 0; } +// OFFSET: 0x00DF88B0 +// FUNCTION: fn_23511 +void CSession::ResetInventoryItems() { + this->m_inventoryItems.erase(this->m_inventoryItems.begin(), this->m_inventoryItems.end()); + this->m_pingSamples.erase(this->m_pingSamples.begin(), this->m_pingSamples.end()); + + for (int index = 0; index < 10; ++index) { + this->unknown_17F0[index].Reset(); + } +} + // OFFSET: 0x00DF8940 // FUNCTION: fn_23512 void CSession::ClearItemContainers() { diff --git a/Source/Client/Session.h b/Source/Client/Session.h index 3c7f13fd..18f1abdf 100644 --- a/Source/Client/Session.h +++ b/Source/Client/Session.h @@ -800,6 +800,7 @@ public: int GetItem1720Quantity(std::uint32_t id) const; int GetItem1720Total() const; const char* GetMonsterRmaName(int job) const; + void ResetInventoryItems(); unsigned char GetShopType(int id); bool HasControlCharacter(std::string text); const char* GetMonsterW3dName(int job) const;