We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e8ba8 commit 219e951Copy full SHA for 219e951
source/funkin/game/cutscenes/ScriptedCutscene.hx
@@ -100,7 +100,7 @@ class ScriptedCutscene extends Cutscene {
100
var event = EventManager.get(StateEvent).recycle(subState);
101
script.call(Flags.MOD_API_VERSION <= 1 ? "onSubstateClose" /*Remove this entirely*/ : "onOpenSubState", [event]);
102
if (!event.cancelled)
103
- super.openSubState(event.substate is FlxSubState ? event.substate : subState);
+ super.openSubState(event.substate is FlxSubState ? cast event.substate : subState);
104
}
105
106
public override function closeSubState()
0 commit comments