From 9696e3e39bcfa5092221e1db9d75769700f0482b Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 20 Oct 2009 12:20:53 +0000 Subject: (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 --- src/saveload/vehicle_sl.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/saveload/vehicle_sl.cpp') 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 -- cgit v1.2.3-54-g00ecf