mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Fix potential null reference if no frames found
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
f38b21110f
commit
71f6e5731d
@ -211,7 +211,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
if (instance.Score == null)
|
||||
continue;
|
||||
|
||||
minFrameTimes.Add(instance.Score.Replay.Frames.Min(f => f.Time));
|
||||
minFrameTimes.Add(instance.Score.Replay.Frames.MinBy(f => f.Time)?.Time ?? 0);
|
||||
}
|
||||
|
||||
// Remove any outliers (only need to worry about removing those lower than the mean since we will take a Min() after).
|
||||
|
Loading…
Reference in New Issue
Block a user