- fixed a potential nil access in the cast bar

This commit is contained in:
Parnic
2008-10-16 15:08:16 +00:00
parent 0dc6b15ed0
commit f4b42ee9b2

View File

@ -345,7 +345,7 @@ function IceCastBar.prototype:SpellCastChannelStart(unit)
end end
function IceCastBar.prototype:SpellCastChannelUpdate(unit) function IceCastBar.prototype:SpellCastChannelUpdate(unit)
if (unit ~= self.unit) then return end if (unit ~= self.unit or not self.actionStartTime) then return end
--IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit)) --IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit))
local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit) local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit)