diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index bbdc714660..ebf3117414 100755 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA public ProductionQueueInfo Info; PowerManager PlayerPower; PlayerResources playerResources; - string Race; + CountryInfo Race; // A list of things we are currently building public List Queue = new List(); @@ -67,7 +67,7 @@ namespace OpenRA.Mods.RA playerResources = playerActor.Trait(); PlayerPower = playerActor.Trait(); - Race = self.Owner.Country.Race; + Race = self.Owner.Country; Produceable = InitTech(playerActor); } @@ -110,7 +110,7 @@ namespace OpenRA.Mods.RA { var bi = a.Traits.Get(); // Can our race build this by satisfying normal prereqs? - var buildable = bi.Owner.Contains(Race); + var buildable = bi.Owner.Contains(Race.Race); tech.Add(a, new ProductionState() { Visible = buildable && !bi.Hidden }); if (buildable) ttc.Add(a.Name, a.Traits.Get().Prerequisites.ToList(), this);