From 726e44aa153b65b9f72482dc71e69a6c8db31a6a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 1 May 2006 06:38:36 +0000 Subject: (svn r4636) - NewGRF: when dealing with vehicle types other than trains, set the parent scope vehicle to be the same as self scope. (Thanks mart3p) --- newgrf_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2