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:
Parnic
2016-07-24 16:52:12 -05:00
parent f0cafee719
commit 46152e92f4
2 changed files with 3 additions and 1 deletions

View File

@ -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