fix: improved performance on bag->bank and bank->bag

This commit is contained in:
Salikh Gurgenidze
2026-01-24 04:32:31 +04:00
parent f443154f0d
commit c23c3ed7ad
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ function BagFrame:UpdateSingleSlot(bagID, slotID)
-- Find the button for this slot in itemButtons
local targetButton = nil
for _, button in ipairs(itemButtons) do
if button.bagID == bagID and button.slot == slotID then
if button.bagID == bagID and button.slotID == slotID then
targetButton = button
break
end
@@ -248,7 +248,7 @@ function BagFrame:UpdateChangedSlots(bagID)
-- Find button for this slot
local targetButton = nil
for _, button in ipairs(itemButtons) do
if button.bagID == bagID and button.slot == slotID then
if button.bagID == bagID and button.slotID == slotID then
targetButton = button
break
end