summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_map.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ai/api/ai_map.cpp b/src/ai/api/ai_map.cpp
index b3a7f753c..dd6151f19 100644
--- a/src/ai/api/ai_map.cpp
+++ b/src/ai/api/ai_map.cpp
@@ -40,7 +40,6 @@
/* static */ TileIndex AIMap::GetTileIndex(uint32 x, uint32 y)
{
- if (x >= ::MapSizeX() || y >= MapSizeY()) return INVALID_TILE;
return ::TileXY(x, y);
}