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:
ragnarok-clanker 2026-11-05 16:04:50 +00:00
commit 5e38ccf86e

View file

@ -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];
}
}