From 4c0ed7e0713aa4242ce9daa281764b0fc9db3916 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 20 Jul 2024 11:33:14 +0200 Subject: [PATCH] Safety check for valid spell being set --- options/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/config.lua b/options/config.lua index a9a60c3b..d5fb5d01 100755 --- a/options/config.lua +++ b/options/config.lua @@ -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