From e10cb5cd9c01fb268e6acff3a90b1d49c39f6cee Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 25 Jun 2015 17:24:42 +0100 Subject: [PATCH] Fix an incorrect coordinate check. --- OpenRA.Game/Map/Map.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Map/Map.cs b/OpenRA.Game/Map/Map.cs index 25dc8b82d7..dd7456ec20 100644 --- a/OpenRA.Game/Map/Map.cs +++ b/OpenRA.Game/Map/Map.cs @@ -664,7 +664,7 @@ namespace OpenRA // (b) Therefore: // - ax + by adds (a - b) * 512 + 512 to u // - ax + by adds (a + b) * 512 + 512 to v - var z = Contains(cell) ? 512 * MapHeight.Value[cell] : 0; + var z = MapHeight.Value.Contains(cell) ? 512 * MapHeight.Value[cell] : 0; return new WPos(512 * (cell.X - cell.Y), 512 * (cell.X + cell.Y + 1), z); }