Fix flag-related crash for scripted "players"

This commit is contained in:
penev92
2015-04-12 19:24:17 +03:00
parent 70c9bca847
commit cc73ba09ab

View File

@@ -101,6 +101,8 @@ namespace OpenRA
Spectating = pr.Spectating;
botType = pr.Bot;
Country = ChooseCountry(world, pr.Race, false);
pr.RaceFlagName = pr.Race;
pr.Race = Country.Name;
}
PlayerActor = world.CreateActor("Player", new TypeDictionary { new OwnerInit(this) });