From 8cdd74be85e9fbdb0736b33182e79bb3f6718900 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 08:19:55 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Exchange/UIExchangeUI.cpp Batch #15060 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_15287 CUIExchangeUI::Conclude: byte-identical - fn_15288 CUIExchangeUI::SubmitZeny: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Exchange/UIExchangeUI.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/UI/Exchange/UIExchangeUI.cpp b/Source/UI/Exchange/UIExchangeUI.cpp index e689bbef4..e989af02f 100644 --- a/Source/UI/Exchange/UIExchangeUI.cpp +++ b/Source/UI/Exchange/UIExchangeUI.cpp @@ -240,8 +240,9 @@ void CUIExchangeUI::Conclude() { } mode->SendMsg(MM_EXEC_EXCHANGE_ITEM, 0, 0, 0, 0); - this->tradeButton->disabled = 1; - this->tradeButton->Invalidate(); + CUIImageButton* button = this->tradeButton; + button->disabled = 1; + button->Invalidate(); } // OFFSET: 0x00A17420 @@ -257,14 +258,15 @@ void CUIExchangeUI::SubmitZeny() { if (g_session.IsNumberWithCommas(text)) { int amount = g_session.m_zeny; const int value = std::atoi(text); - if (value <= amount) { + if (amount >= value) { amount = value < 0 ? 0 : value; } mode->SendMsg(MM_ADD_EXCHANGE_ITEM, 0, g_session.exchangeMoney + amount, 0, 0); mode->SendMsg(MM_CONCLUDE_EXCHANGE_ITEM, 0, 0, 0, 0); - this->lockButton->disabled = 1; - this->lockButton->Invalidate(); + CUIImageButton* button = this->lockButton; + button->disabled = 1; + button->Invalidate(); } else { g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); }