From f335aa88eb6c1b4f835e951f7ddffa3fa8649722 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 19:25:20 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Lists/UIScrollBar.cpp Batch #11086 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_11256 UIChatHisBox::DropOldestRecords: byte-identical - fn_11257 UIChatHisBox::DropOldestLines: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Lists/UIScrollBar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index 0b23300f4..e2485ba25 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -1071,7 +1071,7 @@ void UIChatHisBox::DropOldestLines() { for (unsigned int index = 0; index < half; ++index) { this->lines[index] = this->lines[index + half]; } - this->lines.erase(this->lines.begin() + half, this->lines.end()); + this->lines.resize(half); half = static_cast(this->unknown_00E4.size()) / 2; for (int index = 0; index < static_cast(half); ++index) { @@ -1083,7 +1083,7 @@ void UIChatHisBox::DropOldestLines() { for (unsigned int index = 0; index < half; ++index) { this->history[index] = this->history[index + half]; } - this->history.erase(this->history.begin() + half, this->history.end()); + this->history.resize(half); this->Refresh(); } @@ -1147,7 +1147,7 @@ void UIChatHisBox::DropOldestRecords() { for (unsigned int index = 0; index < half; ++index) { this->unknown_0100[index] = this->unknown_0100[index + half]; } - this->unknown_0100.erase(this->unknown_0100.begin() + half, this->unknown_0100.end()); + this->unknown_0100.resize(half); half = static_cast(this->unknown_010C.size()) / 2; for (int index = 0; index < static_cast(half); ++index) { @@ -1159,7 +1159,7 @@ void UIChatHisBox::DropOldestRecords() { for (unsigned int index = 0; index < half; ++index) { this->unknown_0118[index] = this->unknown_0118[index + half]; } - this->unknown_0118.erase(this->unknown_0118.begin() + half, this->unknown_0118.end()); + this->unknown_0118.resize(half); this->sub_89C080(); }