From 0b2270a810b601c0000ea30cee4a39842eb4e61b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 19:03:39 +0000 Subject: [PATCH] Decompile fn_10217 (UIRuneSetList::OnWheel) Batch #16352 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_10217 UIRuneSetList::OnWheel: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/RuneSystem/UIRuneSystemWnd.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp index ff1f4b0b7..6559ec79b 100644 --- a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp +++ b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp @@ -485,19 +485,7 @@ void UIRuneSystemWnd::OnProcess() { // OFFSET: 0x0081CF10 // FUNCTION: fn_10217 void UIRuneSetList::OnWheel(int delta) { - const int previous = this->position; - int next = previous + (delta < 0 ? 1 : -1); - if (next < 0) { - next = 0; - } - if (next > this->maximum) { - next = this->maximum; - } - - this->position = next; - if (previous != next) { - this->Invalidate(); - } + this->ScrollBy(2 * (delta < 0) - 1); } // OFFSET: 0x0081D460