Fix nil error in OnProfileChanged related to Value/Percent display

This commit is contained in:
Hendrik Leppkes
2008-11-02 01:02:25 +01:00
parent 16d3d888e7
commit 0ae2c8ff00
+2 -2
View File
@@ -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