diff --git a/OpenRA.Mods.RA/Air/AttackPlane.cs b/OpenRA.Mods.RA/Air/AttackPlane.cs index c259ad2b3a..6025e8a27d 100755 --- a/OpenRA.Mods.RA/Air/AttackPlane.cs +++ b/OpenRA.Mods.RA/Air/AttackPlane.cs @@ -29,8 +29,8 @@ namespace OpenRA.Mods.RA.Air protected override bool CanAttack(Actor self, Target target) { - // dont fire while landed - return base.CanAttack(self, target) && self.CenterPosition.Z > 0; + // dont fire while landed or when outside the map + return base.CanAttack(self, target) && self.CenterPosition.Z > 0 && self.World.Map.Contains(self.Location); } } }