(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine
This commit is contained in:
@@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
/* static */ TileIndex AIMap::GetTileIndex(uint32 x, uint32 y)
|
/* static */ TileIndex AIMap::GetTileIndex(uint32 x, uint32 y)
|
||||||
{
|
{
|
||||||
if (x >= ::MapSizeX() || y >= MapSizeY()) return INVALID_TILE;
|
|
||||||
return ::TileXY(x, y);
|
return ::TileXY(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user