diff --git a/source/funkin/ui/debug/charting/handlers/ChartEditorImportExportHandler.hx b/source/funkin/ui/debug/charting/handlers/ChartEditorImportExportHandler.hx index 39bae506c..a7497c550 100644 --- a/source/funkin/ui/debug/charting/handlers/ChartEditorImportExportHandler.hx +++ b/source/funkin/ui/debug/charting/handlers/ChartEditorImportExportHandler.hx @@ -95,9 +95,13 @@ class ChartEditorImportExportHandler if (playerVoiceList.length == 0 && opponentVoiceList.length == 0) // Legacy support... { var suffix:String = (instId != null && instId != '' && instId != 'default') ? '-$instId' : ''; - state.loadVocalsFromAsset(Paths.voices(diff.song.id, suffix), diff.characters.player, instId); - state.audioVocalTrackGroup.legacyVoiceSystem = true; - state.audioVocalTrackGroup.legacyVoiceUsesPlayer = true; + var voiceFile = Paths.voices(diff.song.id, suffix); + if (Assets.exists(voiceFile)) + { + state.loadVocalsFromAsset(voiceFile, diff.characters.player, instId); + state.audioVocalTrackGroup.legacyVoiceSystem = true; + state.audioVocalTrackGroup.legacyVoiceUsesPlayer = true; + } } // Set the difficulty of the song if one was passed in the params, and it isn't the default