Fix the auto-team options.

This commit is contained in:
Paul Chote
2013-11-10 22:34:09 +13:00
parent c9d26b6333
commit a2f16ea781

View File

@@ -227,7 +227,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var teamCount = (orderManager.LobbyInfo.Slots.Count(s => !s.Value.LockTeam && orderManager.LobbyInfo.ClientInSlot(s.Key) != null) + 1) / 2;
if (teamCount >= 1)
{
var teamOptions = Enumerable.Range(2, teamCount + 1).Reverse().Select(d => new DropDownOption
var teamOptions = Enumerable.Range(2, teamCount - 1).Reverse().Select(d => new DropDownOption
{
Title = "{0} Teams".F(d),
IsSelected = () => false,