mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fixed rotation not resetting on profile change
When the player had one profile with a bar rotated 90 degrees and another profile with the same bar not rotated, the non-rotated profile would fail to put the bar back in its original location. Thanks for the detailed report, spacegato!
This commit is contained in:
@ -203,7 +203,7 @@ end
|
||||
function IceUnitBar.prototype:ResetRotation()
|
||||
IceUnitBar.super.prototype.ResetRotation(self)
|
||||
|
||||
if self.flashFrame.anim then
|
||||
if self.flashFrame and self.flashFrame.anim then
|
||||
self.flashFrame.anim:Stop()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user