fixed Voices crash in charter

This commit is contained in:
Frakits
2024-04-27 14:34:25 +03:00
parent ea52e25251
commit e2cd53d4ff
+1 -1
View File
@@ -602,7 +602,7 @@ class Charter extends UIState {
var wavesToGenerate:Array<{name:String, sound:FlxSound}> = [
{name: "Inst.ogg", sound: FlxG.sound.music},
];
if (Assets.exists(Paths.voices(__song, __diff)))
if (sys.FileSystem.exists(Paths.voices(__song, __diff))) //for some reason Assets.exists returns true regardless if the file actually exists
wavesToGenerate.push({name: "Voices.ogg", sound: vocals});
for (strumLine in strumLines)