From 98608626b9062cf343d32b52774d1135e027cbe9 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 15:19:23 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/NavigationSource.cpp Batch #12355 by cremane: 0 byte-identical, 2 confirmed by peer review. - fn_19371 CNaviData::~CNaviData: logic confirmed by peer review - fn_19574 CNavigationManager::ClearRouteNodes: logic confirmed by peer review Peer-reviewed-by: Yommy, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/NavigationSource.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/Contents/NavigationSource.cpp b/Source/Contents/NavigationSource.cpp index 9eaa72fe..91bcdf26 100644 --- a/Source/Contents/NavigationSource.cpp +++ b/Source/Contents/NavigationSource.cpp @@ -137,19 +137,19 @@ void NaviDataEntry::Reset() { CNaviData::~CNaviData() { this->Clear(); - for (CNavi_Link*& object : this->objects) { - if (object != nullptr) { - delete object; + for (std::vector::iterator it = this->objects.begin(); it != this->objects.end(); ++it) { + if (*it != nullptr) { + delete *it; } - object = nullptr; + *it = nullptr; } this->objects.clear(); - for (CNaviInfo*& info : this->destinations) { - if (info != nullptr) { - delete info; + for (std::vector::iterator it = this->destinations.begin(); it != this->destinations.end(); ++it) { + if (*it != nullptr) { + delete *it; } - info = nullptr; + *it = nullptr; } this->destinations.clear(); } @@ -245,8 +245,8 @@ CNavigationManager::~CNavigationManager() { // OFFSET: 0x00B959D0 // FUNCTION: fn_19574 void CNavigationManager::ClearRouteNodes() { - for (NaviRouteLine& line : this->routeLines) { - line.text.clear(); + for (std::vector::iterator it = this->routeLines.begin(); it != this->routeLines.end(); ++it) { + it->text.clear(); } this->routeLines.clear(); }