Fix ctrl-click on hold note crashing Chart Editor

This commit is contained in:
Hundrec
2026-02-10 18:41:38 -07:00
parent 33d1fd578e
commit 6737146571
@@ -4924,7 +4924,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
else if (highlightedHoldNote != null && highlightedHoldNote.noteData != null)
{
// Control click to select/deselect an individual note.
if (isNoteSelected(highlightedNote.noteData))
if (isNoteSelected(highlightedHoldNote.noteData))
{
performCommand(new DeselectItemsCommand([highlightedHoldNote.noteData], []));
}
@@ -5216,7 +5216,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
}
else if (highlightedHoldNote != null && highlightedHoldNote.noteData != null)
{
if (isNoteSelected(highlightedNote.noteData))
if (isNoteSelected(highlightedHoldNote.noteData))
{
performCommand(new DeselectItemsCommand([highlightedHoldNote.noteData], []));
}