diff --git a/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs b/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs index 192f7a6690..ec0c0f4edf 100644 --- a/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs +++ b/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs @@ -9,10 +9,10 @@ namespace OpenRa.Game.Orders { class ChronosphereSelectOrderGenerator : IOrderGenerator { - ISupportPowerImpl chronospherePower; - public ChronosphereSelectOrderGenerator(ISupportPowerImpl chronospherePower) + SupportPower power; + public ChronosphereSelectOrderGenerator(SupportPower power) { - this.chronospherePower = chronospherePower; + this.power = power; } public IEnumerable Order(int2 xy, MouseInput mi) @@ -36,7 +36,7 @@ namespace OpenRa.Game.Orders var unit = underCursor != null ? underCursor.Info as UnitInfo : null; if (unit != null) - yield return new Order("ChronosphereSelect", underCursor, null, int2.Zero, "ChronoshiftPower"); + yield return new Order("ChronosphereSelect", underCursor, null, int2.Zero, power.Name); } } diff --git a/OpenRa.Game/SupportPowers/ChronospherePower.cs b/OpenRa.Game/SupportPowers/ChronospherePower.cs index bab8c671eb..e3355fb771 100644 --- a/OpenRa.Game/SupportPowers/ChronospherePower.cs +++ b/OpenRa.Game/SupportPowers/ChronospherePower.cs @@ -32,7 +32,7 @@ namespace OpenRa.Game.SupportPowers public void Activate(SupportPower p) { this.p = p; - Game.controller.orderGenerator = new ChronosphereSelectOrderGenerator(this); + Game.controller.orderGenerator = new ChronosphereSelectOrderGenerator(p); Sound.Play("slcttgt1.aud"); } }