summaryrefslogtreecommitdiff
path: root/src/saveload/station_sl.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-20 12:20:53 +0000
committerrubidium <rubidium@openttd.org>2009-10-20 12:20:53 +0000
commit9696e3e39bcfa5092221e1db9d75769700f0482b (patch)
tree87659518e7abb1155c43c7d08ebff35b18904481 /src/saveload/station_sl.cpp
parentcfcf3159b2a4c20f2457c1ac360139c18617b93d (diff)
downloadopenttd-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/station_sl.cpp')
-rw-r--r--src/saveload/station_sl.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index b1cb2bed5..9c44ddb26 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -98,10 +98,6 @@ void AfterLoadStations()
st->speclist[i].spec = GetCustomStationSpecByGrf(st->speclist[i].grfid, st->speclist[i].localidx, NULL);
}
- if (Station::IsExpected(st)) {
- for (CargoID c = 0; c < NUM_CARGO; c++) Station::From(st)->goods[c].cargo.InvalidateCache();
- }
-
StationUpdateAnimTriggers(st);
}
}