Fix a crash on atlas characters.

This commit is contained in:
EliteMasterEric 2024-02-29 01:19:32 -05:00
parent 1d70ff95f9
commit 0139d5c4f6
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}
}
/**