diff options
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r-- | newgrf_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c index 38f3af57a..739d985ab 100644 --- a/newgrf_engine.c +++ b/newgrf_engine.c @@ -416,7 +416,7 @@ static inline void NewVehicleResolver(ResolverObject *res, const Vehicle *v) res->ResolveReal = &VehicleResolveReal; res->vehicle.self = v; - res->vehicle.parent = (v != NULL && v->type == VEH_Train) ? GetFirstVehicleInChain(v) : NULL; + res->vehicle.parent = (v != NULL && v->type == VEH_Train) ? GetFirstVehicleInChain(v) : v; res->callback = 0; res->callback_param1 = 0; |