mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Fix possible nullref.
This commit is contained in:
parent
c80e2e8f0a
commit
4e8ead9cf4
@ -49,7 +49,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
return t;
|
||||
});
|
||||
|
||||
double lastObjectTime = (Objects.Last() as IHasEndTime)?.EndTime ?? Objects.Last().StartTime;
|
||||
double lastObjectTime = (Objects.LastOrDefault() as IHasEndTime)?.EndTime ?? Objects.LastOrDefault()?.StartTime ?? double.MaxValue;
|
||||
|
||||
// Perform some post processing of the timing changes
|
||||
timingChanges = timingChanges
|
||||
|
Loading…
Reference in New Issue
Block a user