Skip to content

Commit

Permalink
Merge pull request #15418 from Fearester2008/patch-5
Browse files Browse the repository at this point in the history
"New" Button Crash Fix in Chart Editor!
  • Loading branch information
ShadowMario authored Sep 15, 2024
2 parents 7e6bd91 + 60f7bb4 commit 8de55d3
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 8de55d3

Please sign in to comment.