Fixed bugs
p3lim-52096 [12-21-08 - 04:35]
Fixed bugs
git-svn-id: svn://svn.wowinterface.com/oUF_BarFader-229/trunk@14 cbe42a47-3b53-4817-a5a9-47e79666164c
diff --git a/oUF_BarFader/oUF_BarFader.lua b/oUF_BarFader/oUF_BarFader.lua
index 46c5074..ad90135 100644
--- a/oUF_BarFader/oUF_BarFader.lua
+++ b/oUF_BarFader/oUF_BarFader.lua
@@ -21,7 +21,7 @@ end
local function Update(self)
if(self.unit == 'player' or self.unit == 'pet' or self.unit == 'focus' or self.unit == 'focustarget' or self.unit == 'targettarget') then
- if(self.Castbar.casting or self.Castbar.channeling) then
+ if(self.Castbar and (self.Castbar.casting or self.Castbar.channeling)) then
self:SetAlpha(self.BarFadeMaxAlpha or 1)
elseif(UnitAffectingCombat(self.unit)) then
self:SetAlpha(self.BarFadeMaxAlpha or 1)