From a1111d76781f3393f92a4db64b02ea8778882399 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 05:12:37 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Enchant/UIEnchantUI.cpp Batch #13104 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_14836 CUIListBoxEx::AddNewItem: byte-identical - fn_14837 CUIListBoxEx::AddNewItem: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Enchant/UIEnchantUI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Enchant/UIEnchantUI.cpp b/Source/UI/Enchant/UIEnchantUI.cpp index 21f15493..e6163395 100644 --- a/Source/UI/Enchant/UIEnchantUI.cpp +++ b/Source/UI/Enchant/UIEnchantUI.cpp @@ -141,9 +141,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); @@ -239,9 +239,9 @@ void CUIListBoxEx::AddNewItem() { 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);