From c8724e199e5153d1627ed22019213f0cf7943d31 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Thu, 9 Apr 2009 18:50:16 +0000 Subject: [PATCH] Fixed issue with power tag when unit is nil git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@69 8c7459ed-49dc-4bc8-85d7-b6381a8f5413 --- oUF_P3lim/oUF_P3lim.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua index 13a1a0b..b02edae 100644 --- a/oUF_P3lim/oUF_P3lim.lua +++ b/oUF_P3lim/oUF_P3lim.lua @@ -70,7 +70,7 @@ oUF.TagEvents['[custompp]'] = oUF.TagEvents['[curpp]'] oUF.Tags['[custompp]'] = function(unit) local num, str = UnitPowerType(unit) local c = colors.power[str] - return format('|cff%02x%02x%02x%s|r', c[1] * 255, c[2] * 255, c[3] * 255, oUF.Tags['[curpp]'](unit)) + return c and format('|cff%02x%02x%02x%s|r', c[1] * 255, c[2] * 255, c[3] * 255, oUF.Tags['[curpp]'](unit)) end oUF.TagEvents['[customname]'] = 'UNIT_NAME_UPDATE UNIT_REACTION UNIT_FACTION' -- 1.7.9.5