From 9c06a4aece0415cc143f1dcf0423c00f2d001129 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Thu, 3 May 2007 11:28:46 +0000 Subject: [PATCH] Guard against a db init issue --- PerfectRaid.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PerfectRaid.lua b/PerfectRaid.lua index d6dcb63..a7812cf 100644 --- a/PerfectRaid.lua +++ b/PerfectRaid.lua @@ -553,7 +553,8 @@ function OnAttributeChanged(frame, name, value) frame.manabar:SetValue(UnitMana(unit)) -- Show/Hide the mana bar depending on unit power type - if UnitPowerType(unit) == 0 and frame.options.manaheight > 0 then + local manaheight = frame.options.manaheight or 0 + if UnitPowerType(unit) == 0 and manaheight > 0 then frame.manabar:Show() elseif self.db.profile.showmanaonly then frame.manabar:Hide() -- 1.7.9.5