Skip to content

Commit

Permalink
fix error when setName not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Apr 17, 2021
1 parent 5a193ae commit 4f2572d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AtlasLootClassic/Data/ItemSet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ local ITEM_TO_SET = {
function ItemSet.GetSetName(setID, addQualityColor)
if not ITEM_SET_DATA[setID] then return end
if addQualityColor then
return format("%s%s|r", COLOR_STRINGS[ITEM_SET_DATA[setID][3]], GetItemSetInfo(setID))
return format("%s%s|r", COLOR_STRINGS[ITEM_SET_DATA[setID][3]], GetItemSetInfo(setID) or UNKNOWN)
else
return GetItemSetInfo(setID)
end
Expand Down

0 comments on commit 4f2572d

Please sign in to comment.