1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Use minimum start time to handle SelectedHitObjects not being sorted

This commit is contained in:
Dean Herbert 2020-09-13 22:53:30 +09:00
parent c573392bb2
commit 320e314356

View File

@ -454,7 +454,7 @@ namespace osu.Game.Screens.Edit
Debug.Assert(objects.Any());
double timeOffset = clock.CurrentTime - objects.First().StartTime;
double timeOffset = clock.CurrentTime - objects.Min(o => o.StartTime);
foreach (var h in objects)
h.StartTime += timeOffset;