From d74b236b8e3fb5f657cf3abab33e7bbcc7f30b24 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 09:33:56 +0000 Subject: [PATCH] Decompile fn_11582 (UITabControl::SetFlag) Batch #5167 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_11582 UITabControl::SetFlag: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Lists/UIScrollBar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index ae1699fc..e9005cd3 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -426,6 +426,12 @@ void UITabControl::ClearTabs() { } // OFFSET: 0x0089C1B0 +// FUNCTION: fn_11582 +void UITabControl::SetFlag(int index, bool value) { + if (index >= 0 && index < static_cast(this->labels.size())) { + this->flags[index] = value; + } +} // OFFSET: 0x00880B20 // FUNCTION: fn_11283