From 12a814f487883b291c17bba69a5cd41ebf862708 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 3 Oct 2009 14:46:48 +0000 Subject: (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. --- src/train.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/train.h') 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. }; /** -- cgit v1.2.3-54-g00ecf