From 17dfcd673ec9700b7b82ec6e2d0f91a9ac4a47df Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 13:46:17 +0000 Subject: [PATCH] Decompile fn_12943 (UINormalMB::SendMsg) Batch #16085 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_12943 UINormalMB::SendMsg: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Window/UINormalMB.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/UI/Window/UINormalMB.cpp b/Source/UI/Window/UINormalMB.cpp index ec88881e2..e02d837bc 100644 --- a/Source/UI/Window/UINormalMB.cpp +++ b/Source/UI/Window/UINormalMB.cpp @@ -30,18 +30,17 @@ void UINormalMB::Paint() { int UINormalMB::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { switch (message) { case UM_COMMAND: { - const int id = static_cast(a); - const auto action = this->m_actions.find(id); + const auto action = this->m_actions.find(a); if (action != this->m_actions.end()) { action->second(); } else { if (this->m_owner) { - this->m_owner->SendMsg(this, UM_COMMAND, 488, id, 0, 0); + this->m_owner->SendMsg(this, UM_COMMAND, 488, a, 0, 0); } if (this->m_keepOpen) { - g_windowMgr.modalResponse = id; + g_windowMgr.modalResponse = a; return 0; } }