summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}
}
}