From 624364cb82837e1763a61ed07ef955f447708366 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 00:29:15 +0000 Subject: [PATCH] Decompile fn_17212 (UIWindowMgr::RunModal) Batch #11448 by dori: 0 byte-identical, 1 confirmed by peer review. - fn_17212 UIWindowMgr::RunModal: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/WindowDialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/Window/WindowDialogs.cpp b/Source/UI/Window/WindowDialogs.cpp index 3b64c4fc..8147310f 100644 --- a/Source/UI/Window/WindowDialogs.cpp +++ b/Source/UI/Window/WindowDialogs.cpp @@ -293,7 +293,7 @@ int UIWindowMgr::RunModal(UIWindow* window) { int response = 184; if (g_modalImmediate == 0) { - CMode* pump = static_cast(g_charViewMode); + CMode* pump = g_modeMgr.gameMode; for (;;) { if (this->activeWindowId != 0) { @@ -326,7 +326,7 @@ int UIWindowMgr::RunModal(UIWindow* window) { if (pump) { pump->Update(); - pump = static_cast(g_charViewMode); + pump = g_modeMgr.gameMode; } if (g_session.GetOption(20) > 0) {