Skip to content

Commit

Permalink
"New" Button Crash Fix in Chart Editor!
Browse files Browse the repository at this point in the history
100% work
  • Loading branch information
Fearester2008 committed Aug 25, 2024
1 parent db1bda2 commit 60f7bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/states/editors/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,11 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
function prepareReload()
{
updateJsonData();
updateHeads(true);
loadMusic();
reloadNotes();
onChartLoaded();

updateHeads(true);

autoSaveTime = 0;
Conductor.songPosition = 0;
if(FlxG.sound.music != null) FlxG.sound.music.time = 0;
Expand Down Expand Up @@ -5069,4 +5069,4 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
return [[[0], [0]], [[0], [0]]];
#end
}
}
}

0 comments on commit 60f7bb4

Please sign in to comment.