Skip to content

Commit

Permalink
fix species selector?
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Apr 1, 2024
1 parent 758b9af commit f2a3707
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,12 @@ private void UpdateSpecies()

var speciesIndex = _speciesList.FindIndex(x => x.ID == Profile.Species);
if (speciesIndex == -1)
speciesIndex = 0;
speciesIndex = _speciesList.FindIndex(x => x == _speciesList.First());
if (speciesIndex == -1)
{
Logger.Error("There aren't any species?");
return;
}

CSpeciesButton.Select(speciesIndex);
}
Expand Down

0 comments on commit f2a3707

Please sign in to comment.