Skip to content

Commit 219e951

Browse files
committed
OH MY GOD WAKE UP
1 parent 06e8ba8 commit 219e951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/funkin/game/cutscenes/ScriptedCutscene.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ScriptedCutscene extends Cutscene {
100100
var event = EventManager.get(StateEvent).recycle(subState);
101101
script.call(Flags.MOD_API_VERSION <= 1 ? "onSubstateClose" /*Remove this entirely*/ : "onOpenSubState", [event]);
102102
if (!event.cancelled)
103-
super.openSubState(event.substate is FlxSubState ? event.substate : subState);
103+
super.openSubState(event.substate is FlxSubState ? cast event.substate : subState);
104104
}
105105

106106
public override function closeSubState()

0 commit comments

Comments
 (0)