diff --git a/AUTHORS b/AUTHORS index e405bda155..caa4c08255 100644 --- a/AUTHORS +++ b/AUTHORS @@ -64,6 +64,7 @@ Also thanks to: * Raymond Martineau (mart0258) * Reaperrr * Riderr3 + * Rikhardur Bjarni Einarsson (WolfGaming) * Sascha Biedermann (bidifx) * Sebastien Kerguen (xanax) * Simon Verbeke (Saticmotion) diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index 102a2d4e61..1e248d2c92 100644 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -164,14 +164,12 @@ namespace OpenRA.Mods.RA public void PrerequisitesItemHidden(string key) { - var ps = Produceable[self.World.Map.Rules.Actors[key]]; - ps.Visible = false; + Produceable[self.World.Map.Rules.Actors[key]].Visible = false; } public void PrerequisitesItemVisable(string key) { - var ps = Produceable[self.World.Map.Rules.Actors[key]]; - ps.Visible = true; + Produceable[self.World.Map.Rules.Actors[key]].Visible = true; } public ProductionItem CurrentItem()