Fix a story menu crash

This commit is contained in:
EliteMasterEric 2023-08-10 14:03:57 -04:00
parent de6972cb90
commit 214c706cac

View file

@ -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)