mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
This commit is contained in:
parent
9c94aae30f
commit
f0915957d4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue