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:
parent
0e7e36f114
commit
7989286528
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user