mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 12:22:56 +08:00
Add null check
This commit is contained in:
parent
76ed573c56
commit
6288e6da56
@ -184,8 +184,9 @@ namespace osu.Game.Scoring
|
||||
public override string ToString() => $"{User} playing {Beatmap}";
|
||||
|
||||
public bool Equals(ScoreInfo other) =>
|
||||
other?.OnlineScoreID == OnlineScoreID
|
||||
&& other?.BeatmapInfoID == BeatmapInfoID
|
||||
other != null
|
||||
&& other.OnlineScoreID == OnlineScoreID
|
||||
&& other.BeatmapInfoID == BeatmapInfoID
|
||||
&& other.Hash == Hash;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user