1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 05:03:20 +08:00

Fix out of range exceptions due to out-of-order hitobjects.

This commit is contained in:
smoogipooo 2017-05-18 14:08:48 +09:00
parent 6dae5cbacf
commit de8271ad6b

View File

@ -25,7 +25,8 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
{
BeatmapInfo = original.BeatmapInfo,
TimingInfo = original.TimingInfo,
HitObjects = original.HitObjects.SelectMany(converter.Convert).ToList()
// We need to sort here, because the converter generates patterns
HitObjects = original.HitObjects.SelectMany(converter.Convert).OrderBy(h => h.StartTime).ToList()
};
}