summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-08-05 13:25:49 +0000
committersmatz <smatz@openttd.org>2008-08-05 13:25:49 +0000
commit158d4acbba680d07809a5424ac25ac32fe41a141 (patch)
tree6024600c04f2fd17f20b6bde7feaeb5d8cb5cdd9 /src
parentddd8b73f0adbf9fdda07c98608a7c8f04a20f347 (diff)
downloadopenttd-158d4acbba680d07809a5424ac25ac32fe41a141.tar.xz
(svn r14001) -Fix (r13989): reading wrong variable, train crash on bridge crashes game
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 94b708389..95c9b613c 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3522,7 +3522,7 @@ static Vehicle *FindTrainCollideEnum(Vehicle *v, void *data)
/* Vehicle is inside a wormhole, v->u.rail.track contains no useful value then. */
trackbits |= DiagDirToDiagTrackBits(GetTunnelBridgeDirection(u->tile));
}
- TryReserveRailTrack(u->tile, TrackBitsToTrack(u->u.rail.track));
+ TryReserveRailTrack(u->tile, TrackBitsToTrack(trackbits));
}
}
}