summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-15 16:47:35 +0000
committertron <tron@openttd.org>2006-03-15 16:47:35 +0000
commitdcf6c85bf2a9b88e8b2839e3aebc91e5576d111e (patch)
treee849c6ffe4115e8e1f6d9d0323e2a40e90fc322e /tunnelbridge_cmd.c
parent3d9c76d8b81794ad2e13242eafca1022b6dfbca6 (diff)
downloadopenttd-dcf6c85bf2a9b88e8b2839e3aebc91e5576d111e.tar.xz
(svn r3888) If you think you've checked everything, check once more. *sigh* Fix r3887
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index f0d81207d..a14386280 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -809,7 +809,7 @@ int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec)
if (!CheckTileOwnership(tile)) return CMD_ERROR;
// railway bridge
- tile = GetOtherBridgeEnd(tile);
+ endtile = GetOtherBridgeEnd(tile);
// Make sure there's no vehicle on the bridge
v = FindVehicleBetween(tile, endtile, z);
if (v != NULL) {