From fcce3454543a5d5073b6887c40c55443939ac9a9 Mon Sep 17 00:00:00 2001
From: Mike Welsh <mwelsh@gmail.com>
Date: Mon, 4 Mar 2024 02:26:38 -0800
Subject: [PATCH] Avoid null reference error with music

---
 source/funkin/play/PlayState.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx
index 8b7dee87e..dd507963c 100644
--- a/source/funkin/play/PlayState.hx
+++ b/source/funkin/play/PlayState.hx
@@ -1786,7 +1786,7 @@ class PlayState extends MusicBeatSubState
 
     // I am going insane.
     FlxG.sound.music.volume = 1.0;
-    FlxG.sound.music.fadeTween.cancel();
+    FlxG.sound.music.fadeTween?.cancel();
 
     trace('Playing vocals...');
     add(vocals);