From cfa4149e94c59141dba8ecfcae14ffa6173aae03 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 00:42:29 +0000 Subject: [PATCH] Decompile fn_17155 (UIWindowMgr::RestoreInput) Batch #11428 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_17155 UIWindowMgr::RestoreInput: logic confirmed by peer review Peer-reviewed-by: Tanke, dori, 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/UI/Window/WindowDialogs.cpp b/Source/UI/Window/WindowDialogs.cpp index 8147310f..75dac54c 100644 --- a/Source/UI/Window/WindowDialogs.cpp +++ b/Source/UI/Window/WindowDialogs.cpp @@ -116,12 +116,14 @@ UIWindow* UIWindowMgr::Top() const { // OFFSET: 0x00A91120 // FUNCTION: fn_17155 void UIWindowMgr::RestoreInput() { - for (UIWindow* window : this->rendered) { + for (std::list::iterator it = this->rendered.begin(); it != this->rendered.end(); ++it) { + UIWindow* window = *it; if (window->geometry.visible == 0) { continue; } - for (UIWindow* child : window->m_children) { + for (std::list::iterator childIt = window->m_children.begin(); childIt != window->m_children.end(); ++childIt) { + UIWindow* child = *childIt; if (!child->Slot05() || child->geometry.x <= 0 || child->geometry.y <= 0) { continue; }