From 701ef05562a06f07d60549731850f4cf0059b007 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 25 Aug 2010 19:36:22 +1200 Subject: [PATCH] fix one stupid crash on using bots --- OpenRA.Mods.RA/CreateMPPlayers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/CreateMPPlayers.cs b/OpenRA.Mods.RA/CreateMPPlayers.cs index 53f2507b19..0ee321409f 100644 --- a/OpenRA.Mods.RA/CreateMPPlayers.cs +++ b/OpenRA.Mods.RA/CreateMPPlayers.cs @@ -69,7 +69,7 @@ namespace OpenRA.Mods.RA static Session.Client GetClientForPlayer(Player p) { - return Game.LobbyInfo.Clients.Single(c => c.Index == p.Index); + return Game.LobbyInfo.Clients.Single(c => c.Index == p.ClientIndex); } } }