mirror of
https://github.com/ppy/osu
synced 2024-12-28 09:52:56 +00:00
pretend that the beatmap property will not be null.
Not really throw exception will be the better way?
This commit is contained in:
parent
ea573f314e
commit
c6d0f0f81b
@ -188,7 +188,7 @@ namespace osu.Game.Online.Spectator
|
||||
}
|
||||
|
||||
if (frame is IConvertibleReplayFrame convertible)
|
||||
pendingFrames.Enqueue(convertible.ToLegacy(currentBeatmap));
|
||||
pendingFrames.Enqueue(convertible.ToLegacy(currentBeatmap!));
|
||||
|
||||
if (pendingFrames.Count > max_pending_frames)
|
||||
purgePendingFrames();
|
||||
|
@ -143,7 +143,7 @@ namespace osu.Game.Scoring.Legacy
|
||||
return legacyFrame;
|
||||
|
||||
case IConvertibleReplayFrame convertibleFrame:
|
||||
return convertibleFrame.ToLegacy(beatmap);
|
||||
return convertibleFrame.ToLegacy(beatmap!);
|
||||
|
||||
default:
|
||||
throw new ArgumentException(@"Frame could not be converted to legacy frames", nameof(replayFrame));
|
||||
|
Loading…
Reference in New Issue
Block a user