fix a crash when returning to the chart editor on release builds

This commit is contained in:
Abnormal
2025-06-16 23:41:45 -05:00
parent ff2dff0635
commit e82b578eb8
+1 -1
View File
@@ -1047,8 +1047,8 @@ class PauseSubState extends MusicBeatSubState
AdMobUtil.removeBanner();
#end
if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position!
PlayState.instance.close(); // This only works because PlayState is a substate!
state.close();
PlayState.instance.close(); // This only works because PlayState is a substate!
}
}