Use a stable sort for hitobjects

This commit is contained in:
smoogipoo 2018-05-16 13:30:48 +09:00
parent 2297a53342
commit cf44357bdb
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ protected override void ParseStreamInto(StreamReader stream, Beatmap beatmap)
// objects may be out of order *only* if a user has manually edited an .osu file.
// unfortunately there are ranked maps in this state (example: https://osu.ppy.sh/s/594828).
this.beatmap.HitObjects.Sort((x, y) => x.StartTime.CompareTo(y.StartTime));
this.beatmap.HitObjects = this.beatmap.HitObjects.OrderBy(h => h.StartTime).ToList();
foreach (var hitObject in this.beatmap.HitObjects)
hitObject.ApplyDefaults(this.beatmap.ControlPointInfo, this.beatmap.BeatmapInfo.BaseDifficulty);