diff options
author | rubidium <rubidium@openttd.org> | 2009-05-23 09:10:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-23 09:10:56 +0000 |
commit | 6237fe146228e84761c6aba14bf7acf6c359f061 (patch) | |
tree | 0ff89de7f14a652d59d972e949761819642296a4 /src/saveload | |
parent | da5661a0c8870c532c393ec3d330c3fbb44eb8ac (diff) | |
download | openttd-6237fe146228e84761c6aba14bf7acf6c359f061.tar.xz |
(svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 5de480a56..6554baf02 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -253,7 +253,7 @@ void AfterLoadVehicles(bool part_of_load) if (part_of_load) v->fill_percent_te_id = INVALID_TE_ID; v->first = NULL; if (v->type == VEH_TRAIN) ((Train *)v)->tcache.first_engine = INVALID_ENGINE; - if (v->type == VEH_ROAD) ((RoadVehicle *)v)->first_engine = INVALID_ENGINE; + if (v->type == VEH_ROAD) ((RoadVehicle *)v)->rcache.first_engine = INVALID_ENGINE; v->cargo.InvalidateCache(); } |