From df45691434f795959703085bdb48109bd54171e4 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 1 Sep 2014 21:48:26 +0200 Subject: [PATCH] Yeah, that's not how a table works --- oUF_P3lim.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 611def8..5ab2194 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -712,10 +712,10 @@ PreparationHandler:SetScript('OnEvent', function(self, event) local specID = GetArenaOpponentSpec(index) if(specID and specID > 0) then local _, name, _, _, _, _, class = GetSpecializationInfoByID(specID) - local r, g, b, colorStr = RAID_CLASS_COLORS[class] + local color = RAID_CLASS_COLORS[class] - Frame.Spec:SetFormattedText('|c%s%s|r', colorStr, name) - Frame.Power:SetTexture(r, g, b) + Frame.Spec:SetFormattedText('|c%s%s|r', color.colorStr, name) + Frame.Power:SetTexture(color.r, color.g, color.b) else Frame.Spec:SetText('Unknown') Frame.Power:SetTexture(1, 1, 1) -- 1.7.9.5