diff options
Diffstat (limited to 'src/pbs.cpp')
-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 0554b2ecc..f4898e0e2 100644 --- a/src/pbs.cpp +++ b/src/pbs.cpp @@ -235,7 +235,7 @@ static Vehicle *FindTrainOnTrackEnum(Vehicle *v, void *data) if (v->type != VEH_TRAIN || (v->vehstatus & VS_CRASHED)) return NULL; - Train *t = (Train *)v; + Train *t = Train::From(v); if (HasBit((TrackBits)t->track, TrackdirToTrack(info->res.trackdir))) { t = t->First(); |