From f0915957d48278cb03f70f02f7d48c248104df63 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 13 Nov 2007 22:44:41 +0000 Subject: (svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash... --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2