Skip to content

Commit

Permalink
Safety check for valid spell being set
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Jul 20, 2024
1 parent b077157 commit 4c0ed7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ local function loadGeneralOptions()
text = L["Alternate Spell Name"]
end

local icon = GetSpellTexture(name)
local icon = name and GetSpellTexture(name)
if( not icon ) then
icon = "Interface\\Icons\\Inv_misc_questionmark"
end
Expand Down

0 comments on commit 4c0ed7e

Please # to comment.