diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index ed795c77cf..670fca01d1 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -19,7 +19,7 @@ namespace OpenRa.Game public readonly WorldRenderer worldRenderer; public readonly Controller controller; - int localPlayerIndex = 1; + int localPlayerIndex = 2; public readonly Dictionary players = new Dictionary(); diff --git a/OpenRa.Game/Sidebar.cs b/OpenRa.Game/Sidebar.cs index 7832494c4a..0ae91bde32 100644 --- a/OpenRa.Game/Sidebar.cs +++ b/OpenRa.Game/Sidebar.cs @@ -61,7 +61,7 @@ namespace OpenRa.Game public void Build(SidebarItem item) { if (item != null) - game.controller.orderGenerator = new PlaceBuilding(game.players[1], item.techTreeItem.tag.ToLowerInvariant()); + game.controller.orderGenerator = new PlaceBuilding(game.LocalPlayer, item.techTreeItem.tag.ToLowerInvariant()); } void LoadSprites(string filename)