Prevent potential exception

This commit is contained in:
smoogipoo 2020-04-28 14:47:45 +09:00
parent 7342e00151
commit da30eafa30
1 changed files with 1 additions and 1 deletions

View File

@ -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;