(svn r27288) -Fix: Slow network content GUI in MSVC Debug builds due to repeated string resolving.

This commit is contained in:
michi_cc
2015-05-17 19:49:35 +00:00
parent ada765a7e1
commit a41f197379
3 changed files with 20 additions and 5 deletions

View File

@@ -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.