From 482c21307944e7c042ee67161e67fbb8163a7a53 Mon Sep 17 00:00:00 2001 From: Kolze <53307233+KolzeYT@users.noreply.github.com> Date: Thu, 7 Aug 2025 13:42:57 +0200 Subject: [PATCH] prevent crash when vocal suffix doesnt exist (#709) pls merge adding erects is hell --- source/funkin/editors/charter/CharterStrumlineScreen.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/editors/charter/CharterStrumlineScreen.hx b/source/funkin/editors/charter/CharterStrumlineScreen.hx index ce7aaad9..a6beb4ad 100644 --- a/source/funkin/editors/charter/CharterStrumlineScreen.hx +++ b/source/funkin/editors/charter/CharterStrumlineScreen.hx @@ -171,7 +171,7 @@ class CharterStrumlineScreen extends UISubstateWindow { } } - vocalsSuffixDropDown = new UIDropDown(typeDropdown.x, hudScaleStepper.y + 128, 200, 32, suffixList, strumLine.vocalsSuffix != null && strumLine.vocalsSuffix != "" ? suffixList.indexOf(strumLine.vocalsSuffix) : 0); + vocalsSuffixDropDown = new UIDropDown(typeDropdown.x, hudScaleStepper.y + 128, 200, 32, suffixList, strumLine.vocalsSuffix != null && strumLine.vocalsSuffix != "" && Assets.exists(Paths.voices(Charter.__song.toLowerCase(), "", strumLine.vocalsSuffix)) ? suffixList.indexOf(strumLine.vocalsSuffix) : 0); add(vocalsSuffixDropDown); addLabelOn(vocalsSuffixDropDown, TU.translate("charterStrumLine.vocalSuffix"));