From 4f99fbd50940eebc0036e54b6f8df3dabde2cb3c Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Sat, 16 Oct 2010 21:08:05 +0000 Subject: [PATCH] Just in case --- Modules/Bars/Bars.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Bars/Bars.lua b/Modules/Bars/Bars.lua index 3f73de3..3527622 100644 --- a/Modules/Bars/Bars.lua +++ b/Modules/Bars/Bars.lua @@ -365,7 +365,7 @@ function mod:SetUnit() unit = GameTooltip:GetUnit() GameTooltipStatusBar:Hide() createBars() - for i, bar in pairs(self.bars) do + for i, bar in pairs(self.bars or {}) do bar:Start() bar.bar:Show() if bar.secondBar then @@ -377,7 +377,7 @@ function mod:SetUnit() end function mod:SetItem() - for i, bar in pairs(self.bars) do + for i, bar in pairs(self.bars or {}) do if not bar.config.alwaysShown then bar:Stop() bar.bar:Hide() @@ -391,7 +391,7 @@ function mod:SetItem() end function mod:SetSpell() - for i, bar in pairs(self.bars) do + for i, bar in pairs(self.bars or {}) do if not bar.config.alwaysShown then bar:Stop() bar.bar:Hide() @@ -405,7 +405,7 @@ function mod:SetSpell() end function mod:OnHide() - for i, bar in pairs(self.bars) do + for i, bar in pairs(self.bars or {}) do if not bar.config.alwaysShown then bar:Stop() bar.bar:Hide() -- 1.7.9.5