Skip to content

Commit

Permalink
Fix for error in classic when viewing loot that's totally uncached
Browse files Browse the repository at this point in the history
  • Loading branch information
kemayo committed May 6, 2024
1 parent 25f3c41 commit baed1c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,16 @@ do
if itemID then
self.itemID = itemID
SetItemButtonTexture(button, icon)
else
self.itemID = nil
SetItemButtonTexture(button, false)
end
end
function button:GetItemID()
return self.itemID
end
function button:GetItemLink()
if not self.itemID then return nil end
return select(2, GetItemInfo(self.itemID))
end
end
Expand Down

0 comments on commit baed1c4

Please sign in to comment.