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.
This commit is contained in:
ragnarok-clanker 2026-11-10 13:46:17 +00:00
commit 17dfcd673e

View file

@ -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<int>(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;
}
}