(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

@@ -96,9 +96,7 @@ struct TrainCache {
byte cached_vis_effect;
byte user_def_data;
/* NOSAVE: for wagon override - id of the first engine in train
* 0xffff == not in train */
EngineID first_engine;
EngineID first_engine; ///< cached EngineID of the front vehicle. INVALID_VEHICLE for the front vehicle itself.
};
/**