mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- 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:
@ -695,6 +695,8 @@ end
|
||||
function IceBarElement.prototype:SetScale(texture, scale)
|
||||
local oldScale = self.CurrScale
|
||||
|
||||
scale = IceHUD:Clamp(scale, 0, 1)
|
||||
|
||||
self.CurrScale = self:LerpScale(scale)
|
||||
|
||||
if oldScale ~= self.CurrScale then
|
||||
|
Reference in New Issue
Block a user