Quantcast

Failsafe colors this time

Adrian L Lange [02-23-10 - 22:10]
Failsafe colors this time
Filename
oUF_P3limTags.lua
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)