Skip to content

Commit

Permalink
[src\filters\ItemBind] Fix TooltipUtil.SurfaceArgs Error
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed Aug 14, 2024
1 parent fe224de commit c464936
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/filters/ItemBind.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ local function Matches(bag, slot, rule)
if AddOn:IsRetailWow() and (status == ITEM_ACCOUNTBOUND or status == ITEM_ACCOUNTBOUND_UNTIL_EQUIP) then
local tooltipData = C_TooltipInfoGetBagItem(bag, slot)
if not tooltipData then return false end
TooltipUtil.SurfaceArgs(tooltipData)
for _, line in ipairs(tooltipData.lines) do
TooltipUtil.SurfaceArgs(line)
if TooltipUtil and TooltipUtil.SurfaceArgs then
TooltipUtil.SurfaceArgs(tooltipData)
for _, line in ipairs(tooltipData.lines) do
TooltipUtil.SurfaceArgs(line)
end
end

-- The above SurfaceArgs calls are required to assign values to the
Expand Down

0 comments on commit c464936

Please sign in to comment.