1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-26 06:42:54 +08:00

Prevent potential exception

This commit is contained in:
smoogipoo 2020-04-28 14:47:45 +09:00
parent 7342e00151
commit da30eafa30

View File

@ -59,7 +59,7 @@ namespace osu.Game.Rulesets.UI
/// </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;