From 10b0641ec7b98e1c14693c7a155850ef8fcaef2f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 05:43:33 +0000 Subject: [PATCH] Decompile fn_19472 (CNaviInfo::FindMobByIndex) Batch #11952 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_19472 CNaviInfo::FindMobByIndex: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/NavigationRequest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/NavigationRequest.cpp b/Source/Contents/NavigationRequest.cpp index 0f2c06c2..f1ea6aa7 100644 --- a/Source/Contents/NavigationRequest.cpp +++ b/Source/Contents/NavigationRequest.cpp @@ -369,9 +369,9 @@ std::vector* CNaviInfo::Mobs() { // OFFSET: 0x00B8E460 // FUNCTION: fn_19472 CNavi_Object* CNaviInfo::FindMobByIndex(int index) { - for (CNavi_Object* mob : this->mobs) { - if (index == mob->GetIndex()) { - return mob; + for (std::vector::iterator it = this->mobs.begin(); it != this->mobs.end(); ++it) { + if (index == (*it)->GetIndex()) { + return *it; } } return nullptr;