From 1eb3dbd14a3e643f3b3220cfc4767e6bb1ed1f78 Mon Sep 17 00:00:00 2001 From: Xinhuan Date: Wed, 29 Oct 2008 16:58:02 +0800 Subject: [PATCH] Fix bug which causes ghost bars to show when some classes are not selected to be shown. --- Omen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Omen.lua b/Omen.lua index 8f8154d..4ea59bd 100644 --- a/Omen.lua +++ b/Omen.lua @@ -1301,7 +1301,7 @@ function Omen:UpdateBars() else if i*dbBar.Height + (i-1)*dbBar.Spacing > h then break end end - local bar = bars[j] + local bar = bars[dbBar.ShowHeadings and i-1 or i] local threat = threatTable[guid] bar.Text1:SetText(guidNameLookup[guid]) if dbBar.ShowPercent and dbBar.ShowValue then