Fix a breaking build error on HTML5

This commit is contained in:
EliteMasterEric
2025-06-25 21:05:57 -05:00
committed by Abnormal
parent 3962989f83
commit 9f9af722ca
+3 -1
View File
@@ -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, _ -> {