Decompile fn_03872 (UIChangeMaterialWnd::GetItemAt)
Batch #12498 by unna: 1 byte-identical, 0 confirmed by peer review. - fn_03872 UIChangeMaterialWnd::GetItemAt: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
0aa15d29c5
commit
5e38ccf86e
1 changed files with 2 additions and 2 deletions
|
|
@ -126,8 +126,8 @@ ITEM_INFO* UIChangeMaterialWnd::GetItemAt(int x, int y) {
|
|||
}
|
||||
|
||||
for (unsigned int i = 0; i < this->m_materials.size(); ++i) {
|
||||
const MaterialSlotPos& pos = this->m_materialPos[i];
|
||||
if (pos.x <= x && x <= pos.x + 24 && pos.y <= y && y <= pos.y + 24) {
|
||||
if (this->m_materialPos[i].x <= x && x <= this->m_materialPos[i].x + 24 &&
|
||||
this->m_materialPos[i].y <= y && y <= this->m_materialPos[i].y + 24) {
|
||||
return &this->m_materials[i];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue