From dc56ccada50e671996caf0557de1977b7ff8d236 Mon Sep 17 00:00:00 2001 From: Lasercar Date: Sat, 22 Feb 2025 21:57:32 +1000 Subject: [PATCH] ctrl click on hold note null reference fix --- source/funkin/ui/debug/charting/ChartEditorState.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 14cb97c22..8058f2184 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -4377,7 +4377,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], [])); } @@ -4669,7 +4669,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], [])); }