From dce074ec24ccdd4a744268cfdecd9ed19d2c4d23 Mon Sep 17 00:00:00 2001 From: Krosus777 <38509947+Krosus777@users.noreply.github.com> Date: Sat, 2 Aug 2025 17:14:16 +0200 Subject: [PATCH] HumanoidCharacterProfileFix (#39333) --- Content.Shared/Preferences/HumanoidCharacterProfile.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index 74f933f7ac..acf943c149 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -758,10 +758,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()