summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-12-03 18:44:33 +0000
committerfrosch <frosch@openttd.org>2009-12-03 18:44:33 +0000
commitf4931ef4a2990ada94de973234dafd1f521745b1 (patch)
tree570dc9368f9c6738f73ba59e9b49dc6faa81e09b
parent169141433a100c34a79f766fcfceb41037fea04f (diff)
downloadopenttd-f4931ef4a2990ada94de973234dafd1f521745b1.tar.xz
(svn r18392) -Fix (r13956)[FS#3345]: [YAPP] Trains on bridges were not found, when searching for the origin of a reservation. (Hirundo)
-rw-r--r--src/pbs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pbs.cpp b/src/pbs.cpp
index 1c0f0465c..789d822a9 100644
--- a/src/pbs.cpp
+++ b/src/pbs.cpp
@@ -243,7 +243,7 @@ static Vehicle *FindTrainOnTrackEnum(Vehicle *v, void *data)
if (v->type != VEH_TRAIN || (v->vehstatus & VS_CRASHED)) return NULL;
Train *t = Train::From(v);
- if (HasBit((TrackBits)t->track, TrackdirToTrack(info->res.trackdir))) {
+ if (t->track == TRACK_BIT_WORMHOLE || HasBit((TrackBits)t->track, TrackdirToTrack(info->res.trackdir))) {
t = t->First();
/* ALWAYS return the lowest ID (anti-desync!) */