Merge pull request #283 from FunkinCrew/bugfix/chart-f4-crash

Fix a crash when closing chart editor with no music playing
This commit is contained in:
Cameron Taylor 2024-01-15 21:30:04 -05:00 committed by GitHub
commit 4786091bbe

View file

@ -5951,9 +5951,9 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
ChartEditorNoteSprite.noteFrameCollection = null;
// Stop the music.
welcomeMusic.destroy();
audioInstTrack.destroy();
audioVocalTrackGroup.destroy();
if (welcomeMusic != null) welcomeMusic.destroy();
if (audioInstTrack != null) audioInstTrack.destroy();
if (audioVocalTrackGroup != null) audioVocalTrackGroup.destroy();
}
function applyCanQuickSave():Void