Fix hard crash

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

View File

@ -62,10 +62,15 @@ namespace osu.Game.Rulesets.Osu.UI
public override double GameplayStartTime public override double GameplayStartTime
{ {
get get
{
if (Objects.Any())
{ {
var first = (OsuHitObject)Objects.First(); var first = (OsuHitObject)Objects.First();
return first.StartTime - Math.Max(2000, first.TimePreempt); return first.StartTime - Math.Max(2000, first.TimePreempt);
} }
return 0;
}
} }
} }
} }