From 95cb7c8692ab9527f05a7bef743f6a6a18b7df17 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sun, 17 May 2015 19:49:35 +0000 Subject: (svn r27288) -Fix: Slow network content GUI in MSVC Debug builds due to repeated string resolving. --- src/strings.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/strings.cpp') diff --git a/src/strings.cpp b/src/strings.cpp index a7e60f846..9c88b70c7 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -35,6 +35,7 @@ #include "window_func.h" #include "debug.h" #include "game/game_text.hpp" +#include "network/network_content_gui.h" #include #include "table/strings.h" @@ -1814,6 +1815,7 @@ bool ReadLanguagePack(const LanguageMetadata *lang) SortIndustryTypes(); BuildIndustriesLegend(); SortNetworkLanguages(); + BuildContentTypeStringList(); InvalidateWindowClassesData(WC_BUILD_VEHICLE); // Build vehicle window. InvalidateWindowClassesData(WC_TRAINS_LIST); // Train group window. InvalidateWindowClassesData(WC_ROADVEH_LIST); // Road vehicle group window. -- cgit v1.2.3-54-g00ecf