diff --git a/OpenRA.Game/Traits/Building.cs b/OpenRA.Game/Traits/Building.cs index cbf153a67d..bf134dc379 100644 --- a/OpenRA.Game/Traits/Building.cs +++ b/OpenRA.Game/Traits/Building.cs @@ -34,7 +34,6 @@ namespace OpenRA.Traits public readonly bool Capturable = false; public readonly bool Repairable = true; public readonly string Footprint = "x"; - public readonly string[] Produces = { }; // does this go somewhere else? public readonly int2 Dimensions = new int2(1, 1); public readonly bool Unsellable = false; diff --git a/OpenRA.Mods.RA/EngineerCapture.cs b/OpenRA.Mods.RA/EngineerCapture.cs index 4beb440590..b208b48191 100644 --- a/OpenRA.Mods.RA/EngineerCapture.cs +++ b/OpenRA.Mods.RA/EngineerCapture.cs @@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA if (mi.Button != MouseButton.Right) return null; if (underCursor == null) return null; if (self.Owner.Stances[underCursor.Owner] != Stance.Enemy) return null; - if (!underCursor.traits.Contains()) return null; + if (!underCursor.traits.Contains() || !underCursor.Info.Traits.Get().Capturable) return null; return new Order("CaptureBuilding", self, underCursor); }