diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/SelectDirectionalTarget.cs b/OpenRA.Mods.Common/Traits/SupportPowers/SelectDirectionalTarget.cs index 9b29e4f2e0..f41b8f0b1e 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/SelectDirectionalTarget.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/SelectDirectionalTarget.cs @@ -63,7 +63,7 @@ namespace OpenRA.Mods.Common.Traits if (mi.Button == MouseButton.Left && mi.Event == MouseInputEvent.Down) { - if (!activated) + if (!activated && world.Map.Contains(cell)) { targetCell = cell; targetLocation = mi.Location; @@ -119,7 +119,10 @@ namespace OpenRA.Mods.Common.Traits IEnumerable IOrderGenerator.RenderAboveShroud(WorldRenderer wr, World world) { yield break; } - string IOrderGenerator.GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi) { return cursor; } + string IOrderGenerator.GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi) + { + return world.Map.Contains(cell) ? cursor : "generic-blocked"; + } bool IOrderGenerator.HandleKeyPress(KeyInput e) { return false; }