Fix 4c2e42fa: Wrong town caches when loading pre more-houses savegame

This commit is contained in:
Jonathan G Rennison
2021-04-14 19:49:35 +01:00
parent 7faa279250
commit e623560120
2 changed files with 24 additions and 19 deletions

View File

@@ -1416,8 +1416,8 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log)
old_industry_stations_nears.push_back(ind->stations_near);
}
extern void RebuildTownCaches(bool cargo_update_required);
RebuildTownCaches(false);
extern void RebuildTownCaches(bool cargo_update_required, bool old_map_position);
RebuildTownCaches(false, false);
RebuildSubsidisedSourceAndDestinationCache();
Station::RecomputeCatchmentForAll();