mirror of https://github.com/ppy/osu
Prevent potential exception
This commit is contained in:
parent
7342e00151
commit
da30eafa30
|
@ -59,7 +59,7 @@ public abstract class DrawableRuleset<TObject> : DrawableRuleset, IProvideCursor
|
|||
/// </summary>
|
||||
public PassThroughInputManager KeyBindingInputManager;
|
||||
|
||||
public override double GameplayStartTime => Objects.First().StartTime - 2000;
|
||||
public override double GameplayStartTime => Objects.FirstOrDefault()?.StartTime - 2000 ?? 0;
|
||||
|
||||
private readonly Lazy<Playfield> playfield;
|
||||
|
||||
|
|
Loading…
Reference in New Issue