(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:
frosch
2009-10-03 14:46:48 +00:00
parent 31106e5531
commit a9717da0d3
5 changed files with 7 additions and 6 deletions

View File

@@ -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.
};
/**