From 0ae2c8ff00061462ee49a2b560c5943a8e8b702d Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 2 Nov 2008 01:02:25 +0100 Subject: [PATCH] Fix nil error in OnProfileChanged related to Value/Percent display --- Omen.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Omen.lua b/Omen.lua index 75b9e94..c9398e9 100644 --- a/Omen.lua +++ b/Omen.lua @@ -589,9 +589,9 @@ function Omen:OnProfileChanged(event, database, newProfileKey) if db.Bar.ShowTPS then f:Show() else f:Hide() end end if db.Bar.ShowValue and db.Bar.ShowPercent then - bar.Text2:SetText(L["Threat [%]"]) + bars[0].Text2:SetText(L["Threat [%]"]) else - bar.Text2:SetText(L["Threat"]) + bars[0].Text2:SetText(L["Threat"]) end local texturepath = LSM:Fetch("statusbar", db.Bar.Texture) for i = 0, #bars do