(svn r17684) -Fix: tcache.first_engine and rcache.first_engine need to be set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail.
This commit is contained in:
@@ -89,7 +89,7 @@ void RoadVehUpdateCache(RoadVehicle *v);
|
||||
/** Cached oftenly queried (NewGRF) values */
|
||||
struct RoadVehicleCache {
|
||||
byte cached_veh_length;
|
||||
EngineID first_engine;
|
||||
EngineID first_engine; ///< cached EngineID of the front vehicle. INVALID_VEHICLE for the front vehicle itself.
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user