]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
HumanoidCharacterProfileFix (#39333)
authorKrosus777 <38509947+Krosus777@users.noreply.github.com>
Sat, 2 Aug 2025 15:14:16 +0000 (17:14 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Aug 2025 15:14:16 +0000 (17:14 +0200)
Content.Shared/Preferences/HumanoidCharacterProfile.cs

index 845e359564c179a3d48d2d7f9b67779209643b95..f22669ddc70ec486fb41f58cac79a9bb4f178d25 100644 (file)
@@ -693,10 +693,17 @@ namespace Content.Shared.Preferences
             var namingSystem = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<NamingSystem>();
             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()