From dddc331701243561e4e4d44af4bfe22388835e25 Mon Sep 17 00:00:00 2001 From: Merlin <30577208+SimplyMerlin@users.noreply.github.com> Date: Mon, 12 Jul 2021 12:16:24 +0200 Subject: [PATCH] stop game from crashing when pressing r in cutscen --- source/PlayState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 969568b..07037bd 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -2592,7 +2592,7 @@ class PlayState extends MusicBeatState // FlxG.switchState(new GameOverState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y)); } - if (FlxG.save.data.resetButton) + if (!inCutscene && FlxG.save.data.resetButton) { if (FlxG.keys.justPressed.R) {