From 1321610f7d0df547ce2d6d8a3eee2934008ed960 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 23:00:05 +0000 Subject: [PATCH] Decompile fn_09903 (UIRefiningWnd::Reset) Batch #17460 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_09903 UIRefiningWnd::Reset: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Items/UIRefiningWnd.cpp | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/Source/UI/Items/UIRefiningWnd.cpp b/Source/UI/Items/UIRefiningWnd.cpp index f5284232f..423a21729 100644 --- a/Source/UI/Items/UIRefiningWnd.cpp +++ b/Source/UI/Items/UIRefiningWnd.cpp @@ -158,24 +158,33 @@ __declspec(noinline) void UIRefiningWnd::Reset() { this->catalystCount = 0; this->notice->SetNotice("", 0, 0); - this->refiningButton->cost = 0; - this->refiningButton->Invalidate(); - this->refiningButton->SetDisabled(1); - this->refiningButton->Invalidate(); + { + UIRefining_BtnRefining* button = this->refiningButton; + button->cost = 0; + button->Invalidate(); + } + { + UIRefining_BtnRefining* button = this->refiningButton; + button->SetDisabled(1); + button->Invalidate(); + } this->state = 0; this->result = 7; this->stateTick = timeGetTime(); this->frame = 0; - if (this->cancelButton) { - this->cancelButton->SetDisabled(0); - this->cancelButton->Invalidate(); + if (UIButton* button = this->cancelButton) { + button->SetDisabled(0); + button->Invalidate(); } this->result = 7; this->refiningButton->Enable(1); - this->refiningButton->SetDisabled(1); - this->refiningButton->Invalidate(); + { + UIRefining_BtnRefining* button = this->refiningButton; + button->SetDisabled(1); + button->Invalidate(); + } this->returnButton->Enable(0); this->againButton->Enable(0); this->Invalidate();