diff options
Diffstat (limited to 'src/ai/api/ai_map.cpp')
-rw-r--r-- | src/ai/api/ai_map.cpp | 1 |
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); } |