summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-10-03 17:20:56 +0000
committerfrosch <frosch@openttd.org>2011-10-03 17:20:56 +0000
commitb78a459613320d5c45052ece08de55a574104530 (patch)
tree2f7f748ab13f9368ae53d735f5129ea110c407d5 /src/saveload
parentb6766c2ed5fa7e3cb703e1dcfdeacb26cde7d07e (diff)
downloadopenttd-b78a459613320d5c45052ece08de55a574104530.tar.xz
(svn r22977) -Codechange: Rename SetCachedEngineCounts() to GroupStatistics::UpdateAfterLoad().
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 1ad7f5493..52f5e7bb5 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -52,6 +52,7 @@
#include "../core/backup_type.hpp"
#include "../smallmap_gui.h"
#include "../news_func.h"
+#include "../group.h"
#include "table/strings.h"
@@ -252,7 +253,7 @@ static void InitializeWindowsAndCaches()
RecomputePrices();
- SetCachedEngineCounts();
+ GroupStatistics::UpdateAfterLoad();
Station::RecomputeIndustriesNearForAll();
RebuildSubsidisedSourceAndDestinationCache();
@@ -2677,7 +2678,7 @@ void ReloadNewGRFData()
ResetVehiclePosHash();
AfterLoadVehicles(false);
StartupEngines();
- SetCachedEngineCounts();
+ GroupStatistics::UpdateAfterLoad();
/* update station graphics */
AfterLoadStations();
/* Check and update house and town values */