From c982cc024973935ec91b25f849dbd3a165dfd085 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 03:25:57 +0000 Subject: [PATCH] Decompile fn_23489 (CSession::Init) Batch #17732 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_23489 CSession::Init: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Session/Session.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Client/Session/Session.cpp b/Source/Client/Session/Session.cpp index 1b13e18fb..3a41e80c9 100644 --- a/Source/Client/Session/Session.cpp +++ b/Source/Client/Session/Session.cpp @@ -3075,8 +3075,8 @@ void CSession::Init() { this->ClearPairValues(1, 1, 1); this->m_lockItemDrop = false; - for (std::list& items : this->inventoryCategories) { - items.erase(items.begin(), items.end()); + for (int index = 0; index < 11; ++index) { + this->inventoryCategories[index].erase(this->inventoryCategories[index].begin(), this->inventoryCategories[index].end()); } this->replayPacketMode = 0; @@ -3087,8 +3087,8 @@ void CSession::Init() { *reinterpret_cast(&this->itemSelectionState[0x08]) = 0; this->mainShortcutRow = 0; this->alternateShortcutRow = 0; - for (ITEM_INFO& item : this->selectionItems) { - item.Reset(); + for (int index = 0; index < 5; ++index) { + this->selectionItems[index].Reset(); } this->achievementResult = 0;