Fix flag-related crash for scripted "players"
This commit is contained in:
@@ -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) });
|
||||
|
||||
Reference in New Issue
Block a user