From eb7b6f0841c9227cb65e7bde6346e982f669bbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:20:23 +0100 Subject: [PATCH] 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 --- source/funkin/menus/GitarooPause.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/menus/GitarooPause.hx b/source/funkin/menus/GitarooPause.hx index b1741978..cff8aec9 100644 --- a/source/funkin/menus/GitarooPause.hx +++ b/source/funkin/menus/GitarooPause.hx @@ -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)