Removed unintentional header support
p3lim-52096 [01-27-09 - 19:42]
Removed unintentional header support
git-svn-id: svn://svn.wowinterface.com/oUF_BarFader-229/trunk@16 cbe42a47-3b53-4817-a5a9-47e79666164c
diff --git a/oUF_BarFader/oUF_BarFader.lua b/oUF_BarFader/oUF_BarFader.lua
index f8885fa..9856392 100644
--- a/oUF_BarFader/oUF_BarFader.lua
+++ b/oUF_BarFader/oUF_BarFader.lua
@@ -38,7 +38,7 @@ local function Update(self)
end
local function Enable(self)
- if(self.BarFade) then
+ if(self.BarFade and self.unit) then
Update(self)
self:RegisterEvent('UNIT_COMBAT', Update)