diff options
author | rubidium <rubidium@openttd.org> | 2009-10-20 12:20:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-20 12:20:53 +0000 |
commit | 9696e3e39bcfa5092221e1db9d75769700f0482b (patch) | |
tree | 87659518e7abb1155c43c7d08ebff35b18904481 /src/saveload/vehicle_sl.cpp | |
parent | cfcf3159b2a4c20f2457c1ac360139c18617b93d (diff) | |
download | openttd-9696e3e39bcfa5092221e1db9d75769700f0482b.tar.xz |
(svn r17816) -Codechange: move the CargoList invalidation-after-saveload to the function that handles the CargoPackets instead of spreading it around over the saveload files. Also add some code to validate whether the caches are valid; to be removed later when no problems turn up
Diffstat (limited to 'src/saveload/vehicle_sl.cpp')
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index ccb627ebb..f0cc170ca 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -252,8 +252,6 @@ void AfterLoadVehicles(bool part_of_load) v->first = NULL; if (v->type == VEH_TRAIN) Train::From(v)->tcache.first_engine = INVALID_ENGINE; if (v->type == VEH_ROAD) RoadVehicle::From(v)->rcache.first_engine = INVALID_ENGINE; - - v->cargo.InvalidateCache(); } /* AfterLoadVehicles may also be called in case of NewGRF reload, in this |