From 10e26efca833c67b5a949c92363e46f57cecae76 Mon Sep 17 00:00:00 2001 From: "U-YAROOT-WIN\\Administrator" Date: Thu, 24 Nov 2011 09:29:13 +0800 Subject: [PATCH] Check .icon first --- oUF_RaidDebuffs.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/oUF_RaidDebuffs.lua b/oUF_RaidDebuffs.lua index e9c6250..3ac5e14 100644 --- a/oUF_RaidDebuffs.lua +++ b/oUF_RaidDebuffs.lua @@ -6,7 +6,7 @@ --]] --[=[ - .icon [texture] (required) + .icon [texture] .count [fontstring] .cd [cooldown] @@ -67,8 +67,10 @@ local UpdateDebuffFrame = function(rd) if(rd.index and rd.type and rd.filter) then local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura, isBossDebuff, value1, value2, value3 = UnitAura(rd.__owner.unit, rd.index, rd.filter) - rd.icon:SetTexture(icon) - rd.icon:Show() + if(rd.icon) then + rd.icon:SetTexture(icon) + rd.icon:Show() + end if(rd.count) then if count and (count > 0) then -- 1.7.9.5