From 5e38ccf86e8d41e1276bb1bf9599fdc83463729b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 16:04:50 +0000 Subject: [PATCH] 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. --- Source/UI/UIChangeMaterialWnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/UIChangeMaterialWnd.cpp b/Source/UI/UIChangeMaterialWnd.cpp index bf15d608..287e221f 100644 --- a/Source/UI/UIChangeMaterialWnd.cpp +++ b/Source/UI/UIChangeMaterialWnd.cpp @@ -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]; } }