diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index 5d05338a39..10c4e93c42 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -178,7 +178,7 @@ namespace OpenRA else { // Map player - ClientIndex = 0; // Owned by the host (TODO: fix this) + ClientIndex = world.LobbyInfo.Clients.FirstOrDefault(c => c.IsAdmin)?.Index ?? 0; // Owned by the host (TODO: fix this) Color = pr.Color; PlayerName = pr.Name; NonCombatant = pr.NonCombatant;