Skip to content

Commit

Permalink
fix species not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Apr 1, 2024
1 parent 7f2f2ee commit 5b41055
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,11 @@ private void UpdateSpecies()
return;
}

CSpeciesButton.Select(_speciesList.FindIndex(x => x.ID == Profile.Species));
var speciesIndex = _speciesList.FindIndex(x => x.ID == Profile.Species);
if (speciesIndex == -1)
speciesIndex = 0;

CSpeciesButton.Select(speciesIndex);
}

private void UpdateGenderControls()
Expand Down

0 comments on commit 5b41055

Please sign in to comment.