smite some compile errors

This commit is contained in:
alzeih
2010-08-24 23:44:22 +12:00
parent 703f3b8c13
commit a00f0b18a0
4 changed files with 5 additions and 9 deletions

View File

@@ -174,10 +174,9 @@ namespace OpenRA
/* hack: make some slots. */
if (!Players.Any(p => p.Value.Playable))
{
int index = 0;
foreach (var wp in Waypoints)
for (int index = 0; index < Waypoints.Count; index++)
{
var p = new PlayerReference("Multi{0}".F(index++), "Random", false, false) { Playable = true };
var p = new PlayerReference("Multi{0}".F(index), "Random", false, false) { Playable = true };
Players.Add(p.Name, p);
}
}