diff --git a/Projects/Server/Race.cs b/Projects/Server/Race.cs index 5bebc554a..cd3160c78 100644 --- a/Projects/Server/Race.cs +++ b/Projects/Server/Race.cs @@ -137,12 +137,8 @@ public abstract class Race : ISpanParsable { if (int.TryParse(s, out var index) && index >= 0 && index < Races.Length) { - var race = Races[index]; - if (race != null) - { - result = default; - return false; - } + result = Races[index]; + return result != null; } s = s.Trim();