From b20918bfe32dae003d0e0a0c1ce930f0625e8c97 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 14:39:58 +0000 Subject: [PATCH] Decompile fn_19381 (CNaviData::ClearAll) Batch #12373 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19381 CNaviData::ClearAll: 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/NavigationRoute.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Contents/NavigationRoute.cpp b/Source/Contents/NavigationRoute.cpp index 9476c196..ef3cc102 100644 --- a/Source/Contents/NavigationRoute.cpp +++ b/Source/Contents/NavigationRoute.cpp @@ -154,19 +154,19 @@ int NaviCell::GetY() const { void CNaviData::ClearAll() { this->Clear(); - for (CNavi_Link*& object : this->objects) { - if (object != nullptr) { - delete object; + for (auto 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 (auto it = this->destinations.begin(); it != this->destinations.end(); ++it) { + if (*it != nullptr) { + delete *it; } - info = nullptr; + *it = nullptr; } this->destinations.clear(); }