mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
Fix a build issue.
This commit is contained in:
parent
463e946b17
commit
b771b46f1c
1 changed files with 5 additions and 1 deletions
|
@ -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