From 26f83b5a81cdb49056e5c385ac12c8676d983cf5 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 18 Oct 2023 16:02:56 -0400 Subject: [PATCH] Fix _time of nullable compile error. --- source/funkin/ui/debug/charting/ChartEditorState.hx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 30d8fde7e..037388a73 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -4179,12 +4179,14 @@ class ChartEditorState extends HaxeUIState function moveSongToScrollPosition():Void { // Update the songPosition in the audio tracks. - if (audioInstTrack != null) audioInstTrack.time = scrollPositionInMs + playheadPositionInMs; + if (audioInstTrack != null) + { + audioInstTrack.time = scrollPositionInMs + playheadPositionInMs; + // Update the songPosition in the Conductor. + Conductor.update(audioInstTrack.time); + } if (audioVocalTrackGroup != null) audioVocalTrackGroup.time = scrollPositionInMs + playheadPositionInMs; - // Update the songPosition in the Conductor. - Conductor.update(audioInstTrack.time); - // We need to update the note sprites because we changed the scroll position. noteDisplayDirty = true; }