Skip to content

Commit 49f13ed

Browse files
fix transition crash when skipping (#490)
1 parent c4abac4 commit 49f13ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/funkin/backend/MusicBeatTransition.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ class MusicBeatTransition extends MusicBeatSubstate {
7979
public function finish() {
8080
if (newState != null)
8181
FlxG.switchState(newState);
82-
close();
82+
else
83+
close();
8384
}
8485

8586
public override function destroy() {

0 commit comments

Comments
 (0)