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:
parent
04794e51fc
commit
a1111d7678
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue