Make DeserializedMod equality members match other IMods

This commit is contained in:
Bartłomiej Dach 2020-12-29 17:17:44 +01:00
parent 41b79d938b
commit 9d9c0df64c

View File

@ -256,7 +256,7 @@ namespace osu.Game.Scoring
{
public string Acronym { get; set; }
bool IEquatable<IMod>.Equals(IMod other) => other is DeserializedMod them && Equals(them);
public bool Equals(IMod other) => other is DeserializedMod them && Equals(them);
public bool Equals(DeserializedMod other) => Acronym == other?.Acronym;
}