mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Fix recursive equality call on APIBeatmap
and APIBeatmapSet
This commit is contained in:
parent
2cbdac91ad
commit
71fef241df
@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Extensions;
|
||||
using osu.Game.Rulesets;
|
||||
|
||||
#nullable enable
|
||||
@ -104,6 +105,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
#endregion
|
||||
|
||||
public bool Equals(IBeatmapInfo? other) => other is APIBeatmap b && Equals(b);
|
||||
public bool Equals(IBeatmapInfo? other) => other is APIBeatmap b && this.MatchesOnlineID(b);
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Extensions;
|
||||
|
||||
#nullable enable
|
||||
|
||||
@ -142,6 +143,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
#endregion
|
||||
|
||||
public bool Equals(IBeatmapSetInfo? other) => other is APIBeatmapSet b && Equals(b);
|
||||
public bool Equals(IBeatmapSetInfo? other) => other is APIBeatmapSet b && this.MatchesOnlineID(b);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user