libcast: check for spell icons before using it

This commit is contained in:
shagu
2019-05-05 14:15:51 +02:00
parent 70acbe4307
commit 970fbb2abd
+1 -1
View File
@@ -107,7 +107,7 @@ function libcast:AddAction(mob, spell, channel)
if L["spells"][spell] ~= nil then
local casttime = L["spells"][spell].t
local icon = string.format("%s%s", "Interface\\Icons\\", L["spells"][spell].icon)
local icon = L["spells"][spell].icon and string.format("%s%s", "Interface\\Icons\\", L["spells"][spell].icon) or nil
-- add cast action to the database
if not self.db[mob] then self.db[mob] = {} end