Decompile fn_12752 (UIQuickSlotWnd::SendMsg)

Batch #18167 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_12752 UIQuickSlotWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-12 11:34:07 +00:00
commit d19fcbc683

View file

@ -281,8 +281,7 @@ int UIQuickSlotWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen
break;
case UM_UPPUSH:
if (*reinterpret_cast<int*>(&g_session.healthPoints[4]) >= 0) {
const std::string text = FormatOwnedString(LookupMessage(MSI_CONFIRM_TO_OPEN_CASH_ITEM), item.DisplayName(0).c_str());
if (g_windowMgr.Confirm(text.c_str(), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) {
if (g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_CONFIRM_TO_OPEN_CASH_ITEM), item.DisplayName(0).c_str()).c_str(), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) {
mode->SendMsg(MM_USEITEM, item.identity[1], 0, 0, 0);
}
}