diff options
author | michi_cc <michi_cc@openttd.org> | 2015-05-17 19:49:35 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2015-05-17 19:49:35 +0000 |
commit | 95cb7c8692ab9527f05a7bef743f6a6a18b7df17 (patch) | |
tree | f285c527da15263004638cec6dbdb894f4dc27ef /src/strings.cpp | |
parent | 514da346bdfb94422d0e0c57eeaebea80b3db071 (diff) | |
download | openttd-95cb7c8692ab9527f05a7bef743f6a6a18b7df17.tar.xz |
(svn r27288) -Fix: Slow network content GUI in MSVC Debug builds due to repeated string resolving.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stack> #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. |