From be25f25660dd9a4e60ae2e58f99e0e6e0d21f1a2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 14:35:34 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/NavigationSource.cpp Batch #12388 by cremane: 1 byte-identical, 1 confirmed by peer review. - fn_19429 CNaviInfo::~CNaviInfo: byte-identical - fn_19575 CNavigationManager::ClearNodePaths: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/NavigationSource.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/Contents/NavigationSource.cpp b/Source/Contents/NavigationSource.cpp index f70fdd65..9eaa72fe 100644 --- a/Source/Contents/NavigationSource.cpp +++ b/Source/Contents/NavigationSource.cpp @@ -164,27 +164,27 @@ CNaviInfo::~CNaviInfo() { this->cellX = 0; this->cellY = 0; - for (CNavi_Object*& npc : this->npcs) { - if (npc != nullptr) { - delete npc; + for (std::vector::iterator it = this->npcs.begin(); it != this->npcs.end(); ++it) { + if (*it != nullptr) { + delete *it; } - npc = nullptr; + *it = nullptr; } this->npcs.clear(); - for (CNavi_Object*& mob : this->mobs) { - if (mob != nullptr) { - delete mob; + for (std::vector::iterator it = this->mobs.begin(); it != this->mobs.end(); ++it) { + if (*it != nullptr) { + delete *it; } - mob = nullptr; + *it = nullptr; } this->mobs.clear(); - for (CNavi_Link*& link : this->links) { - if (link != nullptr) { - delete link; + for (std::vector::iterator it = this->links.begin(); it != this->links.end(); ++it) { + if (*it != nullptr) { + delete *it; } - link = nullptr; + *it = nullptr; } this->links.clear(); } @@ -257,7 +257,7 @@ void CNavigationManager::ClearNodePaths() { for (std::size_t i = 0; i < this->nodePaths.size(); ++i) { this->nodePaths[i].clear(); } - this->nodePaths.erase(this->nodePaths.begin(), this->nodePaths.end()); + this->nodePaths.clear(); } // OFFSET: 0x00B961A0