1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 18:32:56 +08:00

Fix hard crash

This commit is contained in:
Alten 2019-05-13 23:29:24 -04:00
parent ebfcc8b3ec
commit ad5ad8ccb5

View File

@ -63,8 +63,13 @@ namespace osu.Game.Rulesets.Osu.UI
{
get
{
var first = (OsuHitObject)Objects.First();
return first.StartTime - Math.Max(2000, first.TimePreempt);
if (Objects.Any())
{
var first = (OsuHitObject)Objects.First();
return first.StartTime - Math.Max(2000, first.TimePreempt);
}
return 0;
}
}
}