Fixed Crashing Issue in chart editor

This commit is contained in:
NeeEoo
2023-05-30 03:01:50 +02:00
parent 77952782bb
commit 5f29c57299
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -704,7 +704,8 @@ class Charter extends UIState {
if (true) {
__crochet = ((60 / Conductor.bpm) * 1000);
UIUtil.processShortcuts(topMenu);
if(FlxG.keys.justPressed.ANY)
UIUtil.processShortcuts(topMenu);
if (FlxG.keys.pressed.CONTROL) {
if (FlxG.mouse.wheel != 0) {
@@ -28,7 +28,7 @@ class CharterNoteGroup extends FlxTypedGroup<CharterNote> {
if (!cast(FlxG.state, Charter).selection.contains(__loopSprite))
noteFunc(__loopSprite);
}
for(c in cast(FlxG.state, Charter).selection)
for(c in cast(FlxG.state, Charter).selection.copy())
noteFunc(c);
__currentlyLooping = oldCur;