diff --git a/OpenRA.Mods.RA/Warheads/CreateEffectWarhead.cs b/OpenRA.Mods.RA/Warheads/CreateEffectWarhead.cs index 91bf3af422..43de068c80 100644 --- a/OpenRA.Mods.RA/Warheads/CreateEffectWarhead.cs +++ b/OpenRA.Mods.RA/Warheads/CreateEffectWarhead.cs @@ -95,6 +95,9 @@ namespace OpenRA.Mods.RA { var world = firedBy.World; var targetTile = world.Map.CellContaining(pos); + if (!world.Map.Contains(targetTile)) + return false; + var impactType = GetImpactType(world, targetTile, pos); if (!ValidImpactTypes.HasFlag(impactType) || InvalidImpactTypes.HasFlag(impactType)) return false;