diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index 6d76dc3431..83abccf368 100755 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -66,7 +66,7 @@ namespace OpenRA.Mods.RA PlayerPower = playerActor.Trait(); Race = self.Owner.Country.Race; - Produceable = InitTech(); + Produceable = InitTech(playerActor); } public void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner) @@ -76,13 +76,13 @@ namespace OpenRA.Mods.RA Queue.Clear(); // Produceable contains the tech from the original owner - this is desired so we don't clear it. - Produceable = InitTech(); + Produceable = InitTech(self.Owner.PlayerActor); } - Dictionary InitTech() + Dictionary InitTech(Actor playerActor) { var tech = new Dictionary(); - var ttc = self.Owner.PlayerActor.Trait(); + var ttc = playerActor.Trait(); foreach (var a in AllBuildables(Info.Type)) {