From 0c7e84e4d70081203707c06b1cb7a0cf35da26ad Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 13:46:42 +0000 Subject: [PATCH] Decompile fn_16122 (CUIListBoxEx::AddNewItem) Batch #13108 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_16122 CUIListBoxEx::AddNewItem: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, Tanke, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/ProbabilityTable/UIProbabilityTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/ProbabilityTable/UIProbabilityTable.cpp b/Source/UI/ProbabilityTable/UIProbabilityTable.cpp index 8a444e5d..65beaa10 100644 --- a/Source/UI/ProbabilityTable/UIProbabilityTable.cpp +++ b/Source/UI/ProbabilityTable/UIProbabilityTable.cpp @@ -278,9 +278,9 @@ void CUIListBoxEx::AddNe this->items.clear(); this->selected = static_cast(-1); - if (this->rowHeight <= this->geometry.height) { + if (this->geometry.height >= this->rowHeight) { unsigned int count = static_cast(this->geometry.height / this->rowHeight) + 1; - if (this->geometry.height % this->rowHeight > 1) { + if (this->geometry.height % this->rowHeight >= 2) { ++count; } this->items.resize(count, nullptr);