summaryrefslogtreecommitdiff
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
commite74d77211fab8ea22aad6d95bcbb855aebe3c85c (patch)
treee849c6ffe4115e8e1f6d9d0323e2a40e90fc322e
parent626109f3f967a9ab4918808351fde640aafaa27b (diff)
downloadopenttd-e74d77211fab8ea22aad6d95bcbb855aebe3c85c.tar.xz
(svn r3888) If you think you've checked everything, check once more. *sigh* Fix r3887
-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) {