mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Fix crash when loading results after gameplay (#6886)
Fix crash when loading results after gameplay
This commit is contained in:
commit
74c034aee8
@ -183,6 +183,10 @@ namespace osu.Game.Scoring
|
||||
|
||||
public override string ToString() => $"{User} playing {Beatmap}";
|
||||
|
||||
public bool Equals(ScoreInfo other) => other?.OnlineScoreID == OnlineScoreID;
|
||||
public bool Equals(ScoreInfo other) =>
|
||||
other != null
|
||||
&& other.OnlineScoreID == OnlineScoreID
|
||||
&& other.BeatmapInfoID == BeatmapInfoID
|
||||
&& other.Hash == Hash;
|
||||
}
|
||||
}
|
||||
|
@ -69,6 +69,6 @@ namespace osu.Game.Scoring
|
||||
|
||||
protected override ArchiveDownloadRequest<ScoreInfo> CreateDownloadRequest(ScoreInfo score, bool minimiseDownload) => new DownloadReplayRequest(score);
|
||||
|
||||
protected override bool CheckLocalAvailability(ScoreInfo model, IQueryable<ScoreInfo> items) => items.Any(s => s.OnlineScoreID == model.OnlineScoreID && s.Files.Any());
|
||||
protected override bool CheckLocalAvailability(ScoreInfo model, IQueryable<ScoreInfo> items) => items.Any(s => s.Equals(model) && s.Files.Any());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user