From b78a459613320d5c45052ece08de55a574104530 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Oct 2011 17:20:56 +0000 Subject: (svn r22977) -Codechange: Rename SetCachedEngineCounts() to GroupStatistics::UpdateAfterLoad(). --- src/saveload/afterload.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/saveload/afterload.cpp') 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 */ -- cgit v1.2.3-70-g09d2