HumanoidCharacterProfileFix (#39333)

This commit is contained in:
Krosus777 2025-08-02 17:14:16 +02:00 committed by Vanessa
parent 2b995b6be4
commit dce074ec24
1 changed files with 8 additions and 1 deletions

View File

@ -758,10 +758,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()