From 207a11351b4f2bdbdb4939e5ef6df14a70e86bf5 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 8 Feb 2010 02:11:47 +0100 Subject: [PATCH] Don't create useless tables --- oUF_P3limTags.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oUF_P3limTags.lua b/oUF_P3limTags.lua index 67343db..07fabc6 100644 --- a/oUF_P3limTags.lua +++ b/oUF_P3limTags.lua @@ -50,8 +50,8 @@ end oUF.Tags['[p3limpower]'] = function(unit) local _, str = UnitPowerType(unit) - local r, g, b = unpack(ns.colors.power[str] or {1, 1, 1}) - return ('|cff%02x%02x%02x%d|r'):format(r * 255, g * 255, b * 255, UnitPower(unit)) + local r, g, b = unpack(ns.colors.power[str]) + return ('|cff%02x%02x%02x%d|r'):format(r or 1* 255, g or 1 * 255, b or 1 * 255, UnitPower(unit)) end oUF.Tags['[p3limdruid]'] = function(unit) -- 1.7.9.5