diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index 845e359564..f22669ddc7 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -693,10 +693,17 @@ namespace Content.Shared.Preferences var namingSystem = IoCManager.Resolve().GetEntitySystem(); return namingSystem.GetName(species, gender); } + public bool Equals(HumanoidCharacterProfile? other) + { + if (other is null) + return false; + + return ReferenceEquals(this, other) || MemberwiseEquals(other); + } public override bool Equals(object? obj) { - return ReferenceEquals(this, obj) || obj is HumanoidCharacterProfile other && Equals(other); + return obj is HumanoidCharacterProfile other && Equals(other); } public override int GetHashCode()