diff options
author | frosch <frosch@openttd.org> | 2009-10-03 14:46:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-10-03 14:46:48 +0000 |
commit | 12a814f487883b291c17bba69a5cd41ebf862708 (patch) | |
tree | 66839262ba2a509a285ffbf30c4888307fd1b937 /src/train.h | |
parent | 539f31f76c73c5c2e10a3f47664184d867416be8 (diff) | |
download | openttd-12a814f487883b291c17bba69a5cd41ebf862708.tar.xz |
(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.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/train.h b/src/train.h index f75cda11c..e1828297d 100644 --- a/src/train.h +++ b/src/train.h @@ -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. }; /** |