From be506ad5964dd0f4812ac4b4feca1ed4e46a3245 Mon Sep 17 00:00:00 2001 From: Kolo <67389779+JustKolosaki@users.noreply.github.com> Date: Thu, 14 Nov 2024 07:08:45 +0100 Subject: [PATCH] check if the vocal files actually exist --- source/funkin/play/song/Song.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/funkin/play/song/Song.hx b/source/funkin/play/song/Song.hx index 20d2f75a4c7..37a1834f0a2 100644 --- a/source/funkin/play/song/Song.hx +++ b/source/funkin/play/song/Song.hx @@ -955,12 +955,14 @@ class SongDifficulty // Add player vocals. for (playerVoice in playerVoiceList) { + if (!Assets.exists(playerVoice)) continue; result.addPlayerVoice(FunkinSound.load(playerVoice)); } // Add opponent vocals. for (opponentVoice in opponentVoiceList) { + if (!Assets.exists(opponentVoice)) continue; result.addOpponentVoice(FunkinSound.load(opponentVoice)); }