From 0785ab94271b26eb0610ff829ce281274b2db4b8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 00:22:42 +0000 Subject: [PATCH] Decompile fn_19383 (CNaviData::Search) Batch #17522 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19383 CNaviData::Search: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Navigation/NavigationRoute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Navigation/NavigationRoute.cpp b/Source/Contents/Navigation/NavigationRoute.cpp index cf12b1684..2af9297b4 100644 --- a/Source/Contents/Navigation/NavigationRoute.cpp +++ b/Source/Contents/Navigation/NavigationRoute.cpp @@ -1109,7 +1109,7 @@ __declspec(noinline) bool CNaviData::Search(std::string query, int type, std::ve text.push_back(0); std::vector spaces; spaces.push_back(-1); - for (unsigned int i = 0; i < text.size(); ++i) { + for (int i = 0; i < text.size(); ++i) { if (text[i] == ' ') { spaces.push_back(i); } @@ -1128,7 +1128,7 @@ __declspec(noinline) bool CNaviData::Search(std::string query, int type, std::ve } else { int kind = this->ParseSearchKind(tokens); out.clear(); - for (CNaviInfo* info : this->destinations) { + for (auto& info : this->destinations) { if (kind == 2) { info->CollectTargets(type, out); } else if (kind == 3) {