From 0a86eaeb83a4a924675d3f362f193c80121ecdd7 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 03:05:04 +0000 Subject: [PATCH] Decompile fn_19502 (CNaviInfo::SearchMap) Batch #17742 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19502 CNaviInfo::SearchMap: 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/NavigationRequest.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Navigation/NavigationRequest.cpp b/Source/Contents/Navigation/NavigationRequest.cpp index c9712cefb..d3016c45b 100644 --- a/Source/Contents/Navigation/NavigationRequest.cpp +++ b/Source/Contents/Navigation/NavigationRequest.cpp @@ -510,7 +510,10 @@ void CNaviInfo::SearchMap(const std::vector& keywords, std::vector< wideKeywords.push_back(std::wstring(buffer)); } - const std::string text = this->name + ' ' + this->title + ' '; + std::string text = this->name; + text.push_back(' '); + text += this->title; + text.push_back(' '); MultiByteToWideChar(CP_ACP, 0, text.c_str(), -1, buffer, 100); const std::wstring wideText(buffer); @@ -555,7 +558,10 @@ void CNaviInfo::SearchMobs(const std::vector& keywords, std::vector } std::wstring entryText; - const std::string text = this->name + ' ' + this->title + ' '; + std::string text = this->name; + text.push_back(' '); + text += this->title; + text.push_back(' '); MultiByteToWideChar(CP_ACP, 0, text.c_str(), -1, buffer, 100); const std::wstring wideText(buffer);