diff options
author | rubidium <rubidium@openttd.org> | 2007-11-13 22:44:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-13 22:44:41 +0000 |
commit | f0915957d48278cb03f70f02f7d48c248104df63 (patch) | |
tree | 90501107873099d2abac59348741798e096e8c44 | |
parent | 9c94aae30f555866d4d918c38026c45df33fd9fa (diff) | |
download | openttd-f0915957d48278cb03f70f02f7d48c248104df63.tar.xz |
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index a8ce3f112..cd0ca8a2b 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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; |