mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-12 05:07:06 +00:00
Fix issue causing crash on F5
This commit is contained in:
parent
697be2c88c
commit
5ae2bc814b
|
@ -649,16 +649,20 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass
|
|||
}
|
||||
boppers = [];
|
||||
|
||||
for (sprite in this.group)
|
||||
if (group != null)
|
||||
{
|
||||
if (sprite != null)
|
||||
for (sprite in this.group)
|
||||
{
|
||||
sprite.kill();
|
||||
sprite.destroy();
|
||||
remove(sprite);
|
||||
if (sprite != null)
|
||||
{
|
||||
sprite.kill();
|
||||
sprite.destroy();
|
||||
remove(sprite);
|
||||
}
|
||||
}
|
||||
group.clear();
|
||||
}
|
||||
group.clear();
|
||||
|
||||
if (debugIconGroup != null && debugIconGroup.group != null)
|
||||
{
|
||||
debugIconGroup.kill();
|
||||
|
|
Loading…
Reference in a new issue