mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-04 13:54:22 +00:00
Fix a build issue.
This commit is contained in:
parent
463e946b17
commit
b771b46f1c
|
@ -337,7 +337,11 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
|||
FlxG.sound.music.kill();
|
||||
}
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Reference in a new issue