diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index 978bacab8..9b205c432 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1010,7 +1010,8 @@ class PlayState extends MusicBeatSubState if (health <= Constants.HEALTH_MIN && !isPracticeMode && !isPlayerDying) { vocals.pause(); - FlxG.sound.music.pause(); + + if (FlxG.sound.music != null) FlxG.sound.music.pause(); deathCounter += 1; @@ -3115,8 +3116,8 @@ class PlayState extends MusicBeatSubState */ public function pauseMusic():Void { - FlxG.sound.music.pause(); - vocals.pause(); + if (FlxG.sound.music != null) FlxG.sound.music.pause(); + if (vocals != null) vocals.pause(); } /**