diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pbs.cpp | 2 |
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!) */ |