From 214c706cac07d02b26247d9cf78447c87cd8bf1c Mon Sep 17 00:00:00 2001
From: EliteMasterEric <ericmyllyoja@gmail.com>
Date: Thu, 10 Aug 2023 14:03:57 -0400
Subject: [PATCH] Fix a story menu crash

---
 source/funkin/ui/story/StoryMenuState.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/funkin/ui/story/StoryMenuState.hx b/source/funkin/ui/story/StoryMenuState.hx
index 8d2db0543..8276777ab 100644
--- a/source/funkin/ui/story/StoryMenuState.hx
+++ b/source/funkin/ui/story/StoryMenuState.hx
@@ -470,7 +470,7 @@ class StoryMenuState extends MusicBeatState
     // super.dispatchEvent(event) dispatches event to module scripts.
     super.dispatchEvent(event);
 
-    if ((levelProps?.length ?? 0) > 0)
+    if (levelProps != null && levelProps.length > 0)
     {
       // Dispatch event to props.
       for (prop in levelProps)