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/roadveh_cmd.cpp | |
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/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index c0b511917..52eb9387a 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -255,6 +255,7 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint v->last_station_visited = INVALID_STATION; v->max_speed = rvi->max_speed; v->engine_type = (EngineID)p1; + v->rcache.first_engine = INVALID_ENGINE; // needs to be set before first callback v->reliability = e->reliability; v->reliability_spd_dec = e->reliability_spd_dec; |