(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...

This commit is contained in:
rubidium 2007-11-13 22:44:41 +00:00
parent 9c94aae30f
commit f0915957d4
1 changed files with 1 additions and 1 deletions

View File

@ -933,7 +933,7 @@ static bool GrowTownWithBridge(const Town *t, TileIndex tile, DiagDirection brid
return false;
}
bridge_tile += delta;
} while (IsWaterTile(bridge_tile));
} while (TileX(bridge_tile) != 0 && TileY(bridge_tile) != 0 && IsWaterTile(bridge_tile) && TileX(bridge_tile) != 0);
/* no water tiles in between? */
if (bridge_length == 1) return false;