Skip to content

Commit

Permalink
Retail: Fixed a Lua error where some Professions failed to render an …
Browse files Browse the repository at this point in the history
…icon (fixes #1728)
  • Loading branch information
ImUnicke committed Aug 14, 2024
1 parent bf70cbc commit d27eb85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AllTheThings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6548,7 +6548,12 @@ local fields = {
return t.spellID ~= 2366 and GetSpellName(t.spellID) or C_TradeSkillUI.GetTradeSkillDisplayName(t.professionID);
end,
["icon"] = function(t)
return GetSpellIcon(t.spellID) or C_TradeSkillUI.GetTradeSkillTexture(t.professionID);
local icon
local spellID = t.spellID
if spellID then
icon = GetSpellIcon(spellID)
end
return icon or C_TradeSkillUI.GetTradeSkillTexture(t.professionID);
end,
["spellID"] = function(t)
return app.SkillIDToSpellID[t.professionID];
Expand Down

0 comments on commit d27eb85

Please sign in to comment.