mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Fix exception with 0 frames
This commit is contained in:
parent
bb15baf118
commit
3b86f0eb2f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user