mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Change a case to EqualityComparer.Default to handle null properly.
This commit is contained in:
parent
f25b1ba06f
commit
677717875e
@ -405,7 +405,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
// We may be arriving here due to another component changing the bindable Beatmap.
|
||||
// In these cases, the other component has already loaded the beatmap, so we don't need to do so again.
|
||||
if (!beatmap.Equals(Beatmap.Value.BeatmapInfo))
|
||||
if (!EqualityComparer<BeatmapInfo>.Default.Equals(beatmap, Beatmap.Value.BeatmapInfo))
|
||||
{
|
||||
Logger.Log($"beatmap changed from \"{Beatmap.Value.BeatmapInfo}\" to \"{beatmap}\"");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user