mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-12-12 09:11:11 -05:00
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:
commit
4786091bbe
1 changed files with 3 additions and 3 deletions
|
@ -5951,9 +5951,9 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||||
ChartEditorNoteSprite.noteFrameCollection = null;
|
ChartEditorNoteSprite.noteFrameCollection = null;
|
||||||
|
|
||||||
// Stop the music.
|
// Stop the music.
|
||||||
welcomeMusic.destroy();
|
if (welcomeMusic != null) welcomeMusic.destroy();
|
||||||
audioInstTrack.destroy();
|
if (audioInstTrack != null) audioInstTrack.destroy();
|
||||||
audioVocalTrackGroup.destroy();
|
if (audioVocalTrackGroup != null) audioVocalTrackGroup.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyCanQuickSave():Void
|
function applyCanQuickSave():Void
|
||||||
|
|
Loading…
Reference in a new issue