@@ -70,13 +70,13 @@ static const uint8 _flood_from_dirs[] =
* Called to avoid glitches when flooding tiles next to canal tile.
*
* @param tile tile to check
*/
static inline void MarkTileDirtyIfCanalOrRiver(TileIndex tile)
{
if (IsTileType(tile, MP_WATER) && (IsCanal(tile) || IsRiver(tile))) MarkTileDirtyByTile(tile);
if (IsValidTile(tile) && IsTileType(tile, MP_WATER) && (IsCanal(tile) || IsRiver(tile))) MarkTileDirtyByTile(tile);
}
/**
* Marks the tiles around a tile as dirty, if they are canals or rivers.
* @param tile The center of the tile where all other tiles are marked as dirty
Status change: