- added some protection against error messages that were popping up related to SetTexCoord

- added some protection against a nil access in the player's cast bar under certain circumstances
This commit is contained in:
Parnic
2009-04-16 13:39:37 +00:00
parent 75787ff956
commit 7d37890a31
7 changed files with 27 additions and 10 deletions

View File

@ -271,7 +271,7 @@ function IHUD_Threat.prototype:Update(unit)
if ( self.aggroBarMulti ~= threatMulti ) then
self.aggroBarMulti = threatMulti
local pos = 1 - (1 / threatMulti)
local pos = IceHUD:Clamp(1 - (1 / threatMulti), 0, 1)
local y = self.settings.barHeight - ( pos * self.settings.barHeight )
if ( self.moduleSettings.side == IceCore.Side.Left ) then