From 5f29c57299cfce4348d0cf3df001808d7054d30e Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Tue, 30 May 2023 03:01:42 +0200 Subject: [PATCH] Fixed Crashing Issue in chart editor --- source/funkin/editors/charter/Charter.hx | 3 ++- source/funkin/editors/charter/CharterNoteGroup.hx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index f39e1e5b..5007775a 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -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) { diff --git a/source/funkin/editors/charter/CharterNoteGroup.hx b/source/funkin/editors/charter/CharterNoteGroup.hx index 747b08f6..d9db9604 100644 --- a/source/funkin/editors/charter/CharterNoteGroup.hx +++ b/source/funkin/editors/charter/CharterNoteGroup.hx @@ -28,7 +28,7 @@ class CharterNoteGroup extends FlxTypedGroup { 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;