From b771b46f1cb0fca132355daa09a685022028ac76 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 28 Mar 2024 00:01:18 -0400 Subject: [PATCH] Fix a build issue. --- source/funkin/audio/FunkinSound.hx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/funkin/audio/FunkinSound.hx b/source/funkin/audio/FunkinSound.hx index 92f910335..51533f371 100644 --- a/source/funkin/audio/FunkinSound.hx +++ b/source/funkin/audio/FunkinSound.hx @@ -337,7 +337,11 @@ class FunkinSound extends FlxSound implements ICloneable FlxG.sound.music.kill(); } - FlxG.sound.music = FunkinSound.load(Paths.music('$key/$key'), params?.startingVolume ?? 1.0, true, false, true); + // Apparently HaxeFlixel isn't null safe. + @:nullSafety(Off) + { + FlxG.sound.music = FunkinSound.load(Paths.music('$key/$key'), params?.startingVolume ?? 1.0, true, false, true); + } var music = FunkinSound.load(Paths.music('$key/$key'), params?.startingVolume ?? 1.0, params.loop ?? true, false, true); if (music != null)