mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-25 06:10:16 -04:00
Fix a crash on atlas characters.
This commit is contained in:
parent
1d70ff95f9
commit
0139d5c4f6
1 changed files with 5 additions and 1 deletions
|
@ -191,7 +191,11 @@ class AnimateAtlasCharacter extends BaseCharacter
|
|||
_skipTransformChildren = true;
|
||||
super.kill();
|
||||
_skipTransformChildren = false;
|
||||
this.mainSprite.kill();
|
||||
if (this.mainSprite != null)
|
||||
{
|
||||
this.mainSprite.kill();
|
||||
this.mainSprite = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue