diff --git a/source/PlayState.hx b/source/PlayState.hx index 331c468..4f1237c 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -3232,6 +3232,7 @@ class PlayState extends MusicBeatState function endSong():Void { + endingSong = true; FlxG.stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleInput); FlxG.stage.removeEventListener(KeyboardEvent.KEY_UP, releaseInput); if (useVideo) @@ -4442,7 +4443,7 @@ class PlayState extends MusicBeatState } #end - if (curSong == 'Tutorial' && dad.curCharacter == 'gf') + if (curSong == 'Tutorial' && dad.curCharacter == 'gf' && SONG.notes[Math.floor(curStep / 16)] != null) { if (SONG.notes[Math.floor(curStep / 16)].mustHitSection) dad.dance();