From b11b0bb0e2b106be1a6534cb01008efbab2364dd Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 18 Aug 2012 11:38:06 +0000 Subject: [PATCH] (svn r24482) -Fix [FS#5232] (r24180): Do not call RebuildSubsidisedSourceAndDestinationCache() before subsidy savegame conversion is finished. --- src/openttd.cpp | 3 ++- src/saveload/town_sl.cpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 602f314c9c..0661334d6f 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -60,7 +60,7 @@ #include "game/game.hpp" #include "game/game_config.hpp" #include "town.h" - +#include "subsidy_func.h" #include @@ -1158,6 +1158,7 @@ static void CheckCaches() extern void RebuildTownCaches(); RebuildTownCaches(); + RebuildSubsidisedSourceAndDestinationCache(); uint i = 0; FOR_ALL_TOWNS(t) { diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index 96cf87ada2..c0cb599948 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -50,8 +50,6 @@ void RebuildTownCaches() UpdateTownCargoes(town); } UpdateTownCargoBitmap(); - - RebuildSubsidisedSourceAndDestinationCache(); } /**