Fix Charting Game Over Crash
Pressing Escape in gameover screen while charting crashed because its closes PlayState but it tries to access it's instance after.
This commit is contained in:
parent
34a6e16385
commit
f496efbd9b
|
@ -252,6 +252,7 @@ class GameOverSubState extends MusicBeatSubState
|
|||
this.close();
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position!
|
||||
PlayState.instance.close(); // This only works because PlayState is a substate!
|
||||
return;
|
||||
}
|
||||
else if (PlayStatePlaylist.isStoryMode)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue