@@ -215,7 +215,7 @@ local slots
215
215
local islots
216
216
local useless = {}
217
217
local flyouts = {}
218
- local gframe = false
218
+ local gframe
219
219
local gred = false
220
220
local gblue = false
221
221
local gyellow = false
@@ -634,7 +634,7 @@ function addon:EquipmentFlyout_CreateButton(...)
634
634
--]]
635
635
end
636
636
637
- function addon :EquipmentFlyout_DisplayButton (button ,slot )
637
+ function addon :EquipmentFlyout_DisplayButton (button ,s )
638
638
local location ,itemid ,level = button .location ,nil ,0 ;
639
639
if ( not location ) then
640
640
return ;
@@ -644,7 +644,7 @@ function addon:EquipmentFlyout_DisplayButton(button,slot)
644
644
self :paintButton (' player' ,flyouts [id ].frame )
645
645
return
646
646
end
647
- local key = id .. tostring (slot )
647
+ local key = id .. tostring (s )
648
648
if (flyoutDrawn [key ]) then return end
649
649
flyoutDrawn [key ]= true
650
650
if (not slots ) then self :loadSlots (PaperDollItemsFrame :GetChildren ()) end
@@ -654,10 +654,11 @@ function addon:EquipmentFlyout_DisplayButton(button,slot)
654
654
return ;
655
655
end
656
656
local rc
657
+ itemid = nil
657
658
if (voidStorage and voidSlot ) then
658
- itemid = GetVoidItemInfo (tab ,voidSlot )
659
+ if ( tab ) then itemid = GetVoidItemInfo (tab ,voidSlot ) end
659
660
elseif (bags and slot ) then
660
- itemid = C_Container .GetContainerItemLink (bag ,slot )
661
+ if bag then itemid = C_Container .GetContainerItemLink (bag ,slot ) end
661
662
elseif (player and slot ) then
662
663
itemid = GetInventoryItemLink (" player" ,slot )
663
664
else
0 commit comments