From d8ef43bdef632a7ad2af37ee4048eee91bf45b0b Mon Sep 17 00:00:00 2001 From: Frakits Date: Thu, 31 Jul 2025 15:28:50 +0300 Subject: [PATCH] safe check --- source/funkin/editors/ui/UIDropDown.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/editors/ui/UIDropDown.hx b/source/funkin/editors/ui/UIDropDown.hx index d0cfb323..d9032249 100644 --- a/source/funkin/editors/ui/UIDropDown.hx +++ b/source/funkin/editors/ui/UIDropDown.hx @@ -46,7 +46,7 @@ class UIDropDown extends UISliceSprite { cursor = CLICK; - label = new UIText(0, 0, width - height, items[index].label); + label = new UIText(0, 0, width - height, items[index].label != null ? items[index].label : "ERROR"); members.push(label); dropButton = new UIButton(0, 0, null, null, height, height);