(svn r1686) Fix (Work around?) crash when generating tropical maps

This commit is contained in:
tron 2005-01-26 18:59:10 +00:00
parent ac0ea378ff
commit 8742b63fa1
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ static void CreateDesertOrRainForest(void)
for (tile = 0; tile != MapSize(); ++tile) {
for (data = _make_desert_or_rainforest_data;
data != endof(_make_desert_or_rainforest_data); ++data) {
TileIndex t = tile + ToTileIndexDiff(*data);
TileIndex t = TILE_MASK(tile + ToTileIndexDiff(*data));
if (TileHeight(t) >= 4 || IsTileType(t, MP_WATER)) break;
}
if (data == endof(_make_desert_or_rainforest_data))