fix: MemberwiseEquals on HumanoidProfileEditor now compares Voice (#44468)

This commit is contained in:
Falcon 2026-07-05 09:52:15 -07:00 • committed by GitHub
parent 45f2cb74d5
commit 0cb5a6d64f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -260,7 +260,7 @@ public sealed partial class HumanoidProfileEditor
private void SetVoice(ProtoId<EmoteSoundsPrototype> newVoice)
{
Profile = Profile?.WithVoice(newVoice);
IsDirty = true;
SetDirty();
}
private void SetGender(Gender newGender)

View file

@ -613,6 +613,7 @@ namespace Content.Shared.Preferences
if (Name != other.Name) return false;
if (Age != other.Age) return false;
if (Sex != other.Sex) return false;
if (Voice != other.Voice) return false;
if (Gender != other.Gender) return false;
if (Species != other.Species) return false;
if (PreferenceUnavailable != other.PreferenceUnavailable) return false;