stop game from crashing when pressing r in cutscen

This commit is contained in:
Merlin 2021-07-12 12:16:24 +02:00
parent a9cff4db15
commit dddc331701

View File

@ -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)
{