diff --git a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs index 2eddea10145..3f526981a4e 100644 --- a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs @@ -640,6 +640,7 @@ public void SetProfile(HumanoidCharacterProfile? profile, int? slot) UpdateSkinColor(); UpdateSpawnPriorityControls(); UpdateFlavorTextEdit(); + UpdateCustomSpecieNameEdit(); UpdateAgeEdit(); UpdateEyePickers(); UpdateSaveButton(); @@ -1206,15 +1207,9 @@ private void UpdateNameEdit() private void UpdateCustomSpecieNameEdit() { - if (Profile == null) - return; - - _customspecienameEdit.Text = Profile.Customspeciename ?? ""; - - if (!_prototypeManager.TryIndex(Profile.Species, out var speciesProto)) - return; - - _ccustomspecienamecontainerEdit.Visible = speciesProto.CustomName; + var species = _species.Find(x => x.ID == Profile?.Species) ?? _species.First(); + _customspecienameEdit.Text = string.IsNullOrEmpty(Profile?.Customspeciename) ? Loc.GetString(species.Name) : Profile.Customspeciename; + _ccustomspecienamecontainerEdit.Visible = species.CustomName; } private void UpdateFlavorTextEdit()