From 78bdd1a7930f3572ed355c8bc47abd55539366b9 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 20:37:47 +0000 Subject: [PATCH] Decompile fn_09242 (UIAchTab::UpdateScrollBar) Batch #17297 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_09242 UIAchTab::UpdateScrollBar: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Achievement/UIAchWnd.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/UI/Achievement/UIAchWnd.cpp b/Source/UI/Achievement/UIAchWnd.cpp index 6d1e0693f..f5d90f014 100644 --- a/Source/UI/Achievement/UIAchWnd.cpp +++ b/Source/UI/Achievement/UIAchWnd.cpp @@ -820,13 +820,10 @@ void UIAchTab::UpdateScrollBar() { this->scrollBar->SetRange(overflow, visible, count); if (this->scrollPos < 0) { this->scrollPos = 0; - this->scrollBar->SetPosition(0); - } else { - if (this->scrollPos > overflow) { - this->scrollPos = overflow; - } - this->scrollBar->SetPosition(this->scrollPos); + } else if (this->scrollPos > overflow) { + this->scrollPos = overflow; } + this->scrollBar->SetPosition(this->scrollPos); } else { this->scrollPos = 0; this->scrollBar->SetRange(0, visible, count);