From e9437c2b2b96d052190e88a416247fe5ca61bb29 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 15 Jan 2009 20:59:22 +0000 Subject: (svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine --- src/ai/api/ai_map.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ai/api') 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); } -- cgit v1.2.3-70-g09d2