From 970fbb2abdf1f11cc0818da9b4297c73ea6d0006 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 5 May 2019 14:15:51 +0200 Subject: [PATCH] libcast: check for spell icons before using it --- libs/libcast.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libcast.lua b/libs/libcast.lua index 13af06ae..7264aa7b 100644 --- a/libs/libcast.lua +++ b/libs/libcast.lua @@ -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