mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 17:39:48 +00:00
(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)
This commit is contained in:
parent
ddbb61199b
commit
984a7f808b
@ -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…
Reference in New Issue
Block a user