Mercurial > hg > openttd
changeset 9857:5b6c8f8f755d draft
(svn r14001) -Fix (r13989): reading wrong variable, train crash on bridge crashes game
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 05 Aug 2008 13:25:49 +0000 |
parents | 706f058d13e0 |
children | 72659447f872 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3522,7 +3522,7 @@ /* 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)); } } }