Skip to content

Commit 4c0ed7e

Browse files
committed
Safety check for valid spell being set
1 parent b077157 commit 4c0ed7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

options/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ local function loadGeneralOptions()
523523
text = L["Alternate Spell Name"]
524524
end
525525

526-
local icon = GetSpellTexture(name)
526+
local icon = name and GetSpellTexture(name)
527527
if( not icon ) then
528528
icon = "Interface\\Icons\\Inv_misc_questionmark"
529529
end

0 commit comments

Comments
 (0)