1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

scoreStream never been null

This commit is contained in:
cdwcgt 2023-08-04 19:57:25 +09:00
parent 0e7e36f114
commit 7989286528
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -56,12 +56,12 @@ namespace osu.Game.Screens.Import
private ReplayDownloadButton replayDownloadButton = null!;
private SettingsCheckbox automaticDownload = null!;
private readonly MemoryStream? scoreStream;
private readonly MemoryStream scoreStream;
private readonly APIBeatmap beatmap;
private APIBeatmapSet? beatmapSetInfo;
public ReplayMissingBeatmapScreen(APIBeatmap beatmap, MemoryStream? scoreStream = null)
public ReplayMissingBeatmapScreen(APIBeatmap beatmap, MemoryStream scoreStream)
{
this.beatmap = beatmap;
beatmapSetInfo = beatmap.BeatmapSet;
@ -187,7 +187,7 @@ namespace osu.Game.Screens.Import
if (beatmapSetInfo == null) return;
if (scoreStream == null || !scoreStream.CanRead) return;
if (!scoreStream.CanRead) return;
if (sender.Any(b => b.OnlineID == beatmapSetInfo.OnlineID))
{