diff --git a/OpenRA.Game/Map/Map.cs b/OpenRA.Game/Map/Map.cs index 0302819fad..050fa07d1e 100644 --- a/OpenRA.Game/Map/Map.cs +++ b/OpenRA.Game/Map/Map.cs @@ -853,6 +853,9 @@ namespace OpenRA var cell = CellContaining(pos); var offset = pos - CenterOfCell(cell); + if (!Ramp.Contains(cell)) + return new WDist(offset.Z); + var ramp = Ramp[cell]; if (ramp != 0) {