summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-13 22:44:41 +0000
committerrubidium <rubidium@openttd.org>2007-11-13 22:44:41 +0000
commitf0915957d48278cb03f70f02f7d48c248104df63 (patch)
tree90501107873099d2abac59348741798e096e8c44 /src
parent9c94aae30f555866d4d918c38026c45df33fd9fa (diff)
downloadopenttd-f0915957d48278cb03f70f02f7d48c248104df63.tar.xz
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp2
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;