From 3be6255bbe3376900adb1840d1220002f33bf6b2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:48:14 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Lists/UIScrollBar.cpp Batch #12783 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_11279 UIListBoxEx::FindLine: byte-identical - fn_11285 UIChatHisBox::HistoryText: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Lists/UIScrollBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index 9f99080c..6d0795d4 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -501,7 +501,7 @@ void UIScrollBar::Configure(int x, int y, unsigned char vertical, int length) { // FUNCTION: fn_11279 int UIListBoxEx::FindLine(const std::string& text) { const auto it = std::find_if(this->lines.begin(), this->lines.end(), [text](const auto& entry) { return text == entry.second.text; }); - return it == this->lines.end() ? -1 : it->first; + return it != this->lines.end() ? it->first : -1; } // OFFSET: 0x00880920 @@ -672,7 +672,7 @@ int UITabControl::TabAt(int x, int y) { // OFFSET: 0x00880BB0 // FUNCTION: fn_11285 const char* UIChatHisBox::HistoryText(unsigned int index) { - if (index < this->history.size() && !this->history[index].empty()) { + if (index < this->history.size() && this->history[index].size() > 0) { return this->history[index].c_str(); } return nullptr;