Fix IDE0100

This commit is contained in:
RoosterDragon
2023-02-19 12:36:35 +00:00
committed by Pavel Penev
parent 78c41b84a1
commit ede5412526
2 changed files with 4 additions and 1 deletions

View File

@@ -269,7 +269,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
var bot = botTypes.Random(Game.CosmeticRandom);
var c = orderManager.LobbyInfo.ClientInSlot(slot.Key);
if (slot.Value.AllowBots == true && (c == null || c.Bot != null))
if (slot.Value.AllowBots && (c == null || c.Bot != null))
orderManager.IssueOrder(Order.Command($"slot_bot {slot.Key} {botController.Index} {bot}"));
}
}