Decompile 2 functions in Source/UI/Enchant/UIEnchantUI.cpp

Batch #13104 by cremane: 2 byte-identical, 0 confirmed by peer review.

- fn_14836 CUIListBoxEx<EnchantUI::CUIEnchantItem,EnchantUI::CEnchantItemData>::AddNewItem: byte-identical
- fn_14837 CUIListBoxEx<EnchantUI::CUITargetItem,ITEM_INFO>::AddNewItem: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 05:12:37 +00:00
commit a1111d7678

View file

@ -141,9 +141,9 @@ void CUIListBoxEx<EnchantUI::CUIEnchantItem, EnchantUI::CEnchantItemData>::AddNe
this->items.clear();
this->selected = static_cast<unsigned int>(-1);
if (this->rowHeight <= this->geometry.height) {
if (this->geometry.height >= this->rowHeight) {
unsigned int count = static_cast<unsigned int>(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<EnchantUI::CUITargetItem, ITEM_INFO>::AddNewItem() {
this->items.clear();
this->selected = static_cast<unsigned int>(-1);
if (this->rowHeight <= this->geometry.height) {
if (this->geometry.height >= this->rowHeight) {
unsigned int count = static_cast<unsigned int>(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);