From 04ec34ce2cb42115f4f976335fa1b70bd8e10f18 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 08:08:35 +0000 Subject: [PATCH] Decompile fn_19609 (CNavigationManager::ShowRouteResult) Batch #13153 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_19609 CNavigationManager::ShowRouteResult: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/NavigationRoute.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Contents/NavigationRoute.cpp b/Source/Contents/NavigationRoute.cpp index f2cb4880..38a7b24a 100644 --- a/Source/Contents/NavigationRoute.cpp +++ b/Source/Contents/NavigationRoute.cpp @@ -408,7 +408,7 @@ __declspec(noinline) void CNavigationManager::ShowRouteResult(int result, int mo std::sprintf(buffer, LookupMessage(2315), message.c_str()); g_windowMgr.SendNotice(1, reinterpret_cast(buffer), 0x62B0FF, 0, 0, 0); - if (result == 5 && this->selectedNode != -1 && static_cast(this->selectedNode) < this->nodes.size()) { + if (result == 5 && this->selectedNode != -1 && this->nodes.size() > static_cast(this->selectedNode)) { const int type = this->nodes[this->selectedNode]->GetType(); if (type == 201 || type == 202 || type == 203 || type == 204) { std::sprintf(buffer, LookupMessage(2316), this->nodes[this->selectedNode]->GetName()); @@ -435,7 +435,8 @@ __declspec(noinline) void CNavigationManager::ShowRouteResult(int result, int mo if (mode == 0 || mode == 2) { g_windowMgr.Confirm(message.c_str(), 0, true, false, 0, "Message", 280, 120, 0); if (mode == 4) { - CNavi_Object* node = g_navigationManager.nodes.size() == 0 ? nullptr : g_navigationManager.nodes[0]; + const int count = static_cast(g_navigationManager.nodes.size()); + CNavi_Object* node = count == 0 ? nullptr : g_navigationManager.nodes[0]; std::string text(LookupMessage(2321)); text += node->GetName(); text += " ";