gitaroo pause particular crashfix

someone had an issue that instance was null even if the pause directly loaded from playstate wth
meh at least like this we're sure it won't happen anymore
This commit is contained in:
⍚~Nex
2024-03-25 21:20:23 +01:00
parent e2c92e664c
commit eb7b6f0841
+1 -1
View File
@@ -55,7 +55,7 @@ class GitarooPause extends MusicBeatState
if (controls.ACCEPT)
{
if (PlayState.chartingMode && Charter.undos.unsaved)
if (PlayState.instance != null && PlayState.chartingMode && Charter.undos.unsaved)
PlayState.instance.saveWarn(false);
else {
if (replaySelect)