- 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

@ -805,3 +805,13 @@ function IceHUD:OnProfileEnable(oldName, oldData)
self.IceCore:SetModuleDatabases()
self.IceCore:Enable()
end
function IceHUD:Clamp(value, min, max)
if value < min then
value = min
elseif value > max then
value = max
end
return value
end