diff --git a/OpenRA.Game/Traits/SupportPowers/SupportPower.cs b/OpenRA.Game/Traits/SupportPowers/SupportPower.cs index 6954b54ea9..bbf35ede42 100644 --- a/OpenRA.Game/Traits/SupportPowers/SupportPower.cs +++ b/OpenRA.Game/Traits/SupportPowers/SupportPower.cs @@ -33,7 +33,6 @@ namespace OpenRA.Traits public readonly string[] Prerequisites = { }; public readonly int TechLevel = -1; public readonly bool GivenAuto = true; - public readonly string MissileWeapon = ""; public readonly string BeginChargeSound = null; public readonly string EndChargeSound = null; diff --git a/OpenRA.Mods.RA/SupportPowers/NukePower.cs b/OpenRA.Mods.RA/SupportPowers/NukePower.cs index ca0ea1a64c..4373a9eebd 100755 --- a/OpenRA.Mods.RA/SupportPowers/NukePower.cs +++ b/OpenRA.Mods.RA/SupportPowers/NukePower.cs @@ -27,6 +27,7 @@ namespace OpenRA.Mods.RA.SupportPowers { class NukePowerInfo : SupportPowerInfo { + public readonly string MissileWeapon = ""; public override object Create(Actor self) { return new NukePower(self, this); } } @@ -57,7 +58,7 @@ namespace OpenRA.Mods.RA.SupportPowers Sound.Play(Info.LaunchSound); //FIRE ZE MISSILES - w.Add(new NukeLaunch(silo, Info.MissileWeapon, order.TargetLocation)); + w.Add(new NukeLaunch(silo, (Info as NukePowerInfo).MissileWeapon, order.TargetLocation)); }); Game.controller.CancelInputMode();