mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -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();
|
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);
|
var music = FunkinSound.load(Paths.music('$key/$key'), params?.startingVolume ?? 1.0, params.loop ?? true, false, true);
|
||||||
if (music != null)
|
if (music != null)
|
||||||
|
|
Loading…
Reference in a new issue