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:
parent
7342e00151
commit
da30eafa30
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user