From 144f176d8d427e520205787cc206fa872f39901c Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 23 Feb 2010 23:10:10 +0100 Subject: [PATCH] Failsafe colors this time --- oUF_P3limTags.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oUF_P3limTags.lua b/oUF_P3limTags.lua index 4724c96..d8cc044 100644 --- a/oUF_P3limTags.lua +++ b/oUF_P3limTags.lua @@ -48,7 +48,8 @@ for name, func in pairs({ local power = UnitPower(unit) if(power > 0) then local _, type = UnitPowerType(unit) - return ('%s%d|r'):format(Hex(_COLORS.power[type or 'RUNES']), power) + local colors = _COLORS.power + return ('%s%d|r'):format(Hex(colors[type] or colors['RUNES']), power) end end, ['druid'] = function(unit) -- 1.7.9.5