From 9f9af722cab3fa717c068062b0134d80f7a8bba5 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 25 Jun 2025 21:58:37 -0400 Subject: [PATCH] Fix a breaking build error on HTML5 --- source/funkin/ui/mainmenu/MainMenuState.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/mainmenu/MainMenuState.hx b/source/funkin/ui/mainmenu/MainMenuState.hx index 33d519e74..2efc31031 100644 --- a/source/funkin/ui/mainmenu/MainMenuState.hx +++ b/source/funkin/ui/mainmenu/MainMenuState.hx @@ -246,7 +246,9 @@ class MainMenuState extends MusicBeatState // reset camera when debug menu is closed subStateClosed.add(_ -> resetCamStuff(false)); - subStateOpened.add(sub -> { + // TODO: Why does this specific function break with null safety? + @:nullSafety(Off) + subStateOpened.add((sub:FlxSubState) -> { if (Type.getClass(sub) == FreeplayState) { new FlxTimer().start(0.5, _ -> {