From 129e36eba14c3bfeb8b2dd962356899bb0ca9f99 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 14:46:02 +0000 Subject: [PATCH] Decompile fn_11497 (UIListBoxEx::Slot35) Batch #10577 by dori: 1 byte-identical, 0 confirmed by peer review. - fn_11497 UIListBoxEx::Slot35: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Lists/UIListBoxEx.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/UI/Lists/UIListBoxEx.cpp b/Source/UI/Lists/UIListBoxEx.cpp index 8f8df4ef..19b28c3b 100644 --- a/Source/UI/Lists/UIListBoxEx.cpp +++ b/Source/UI/Lists/UIListBoxEx.cpp @@ -142,7 +142,12 @@ void UIListBoxEx::Slot26(int, int) { // FUNCTION: fn_11497 void UIListBoxEx::Slot35(int value) { if (this->verticalOverflow != 0) { - this->SendMsg(this->verticalBar, 7, value >= 0 ? -3 : 3, 0, 0, 0); + if (value < 0) { + this->SendMsg(this->verticalBar, 7, 3, 0, 0, 0); + return; + } + + this->SendMsg(this->verticalBar, 7, -3, 0, 0, 0); } }