mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Fix exception with 0 frames
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user