From 219e95117b4e589709a810fef885c5049c834156 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Thu, 18 Dec 2025 16:36:37 +0700 Subject: [PATCH] OH MY GOD WAKE UP --- source/funkin/game/cutscenes/ScriptedCutscene.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/game/cutscenes/ScriptedCutscene.hx b/source/funkin/game/cutscenes/ScriptedCutscene.hx index e6d02315..2efeae5b 100644 --- a/source/funkin/game/cutscenes/ScriptedCutscene.hx +++ b/source/funkin/game/cutscenes/ScriptedCutscene.hx @@ -100,7 +100,7 @@ class ScriptedCutscene extends Cutscene { var event = EventManager.get(StateEvent).recycle(subState); script.call(Flags.MOD_API_VERSION <= 1 ? "onSubstateClose" /*Remove this entirely*/ : "onOpenSubState", [event]); if (!event.cancelled) - super.openSubState(event.substate is FlxSubState ? event.substate : subState); + super.openSubState(event.substate is FlxSubState ? cast event.substate : subState); } public override function closeSubState()