diff options
author | smatz <smatz@openttd.org> | 2008-08-05 13:25:49 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-08-05 13:25:49 +0000 |
commit | 158d4acbba680d07809a5424ac25ac32fe41a141 (patch) | |
tree | 6024600c04f2fd17f20b6bde7feaeb5d8cb5cdd9 | |
parent | ddd8b73f0adbf9fdda07c98608a7c8f04a20f347 (diff) | |
download | openttd-158d4acbba680d07809a5424ac25ac32fe41a141.tar.xz |
(svn r14001) -Fix (r13989): reading wrong variable, train crash on bridge crashes game
-rw-r--r-- | src/train_cmd.cpp | 2 |
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)); } } } |