Fix exception with 0 frames

This commit is contained in:
smoogipoo 2021-04-09 18:15:23 +09:00
parent bb15baf118
commit 3b86f0eb2f

View File

@ -40,6 +40,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
{
var targetTime = data.Clock.CurrentTime;
if (data.Frames.Count == 0)
continue;
int frameIndex = data.Frames.BinarySearch(new TimedFrameHeader(targetTime));
if (frameIndex < 0)
frameIndex = ~frameIndex;