From 449ea65a5f516a803d5bdbc7b5f6fd52259c0c55 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 13:12:03 +0000 Subject: [PATCH] Decompile fn_19394 (CNaviData::ResetLinkDepths) Batch #13330 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19394 CNaviData::ResetLinkDepths: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/NavigationGraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/NavigationGraph.cpp b/Source/Contents/NavigationGraph.cpp index 10a91380..2e830ddb 100644 --- a/Source/Contents/NavigationGraph.cpp +++ b/Source/Contents/NavigationGraph.cpp @@ -180,9 +180,9 @@ done: // OFFSET: 0x00B8A720 // FUNCTION: fn_19394 void CNaviData::ResetLinkDepths() { - for (CNaviInfo* destination : this->destinations) { - std::vector::iterator end = destination->LinksEnd(); - for (std::vector::iterator it = destination->LinksBegin(); it != end; ++it) { + for (CNaviInfo*& destination : this->destinations) { + std::vector::const_iterator end = destination->LinksEnd(); + for (std::vector::const_iterator it = destination->LinksBegin(); it != end; ++it) { (*it)->SetDepth(-1); } }