(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)

pull/155/head
peter1138 19 years ago
parent 838ea453dc
commit 726e44aa15

@ -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;

Loading…
Cancel
Save