summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graph_gui.cpp6
-rw-r--r--src/misc.cpp2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index bbf1c22d6..08b99598f 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -1580,3 +1580,9 @@ void ShowPerformanceRatingDetail()
{
AllocateWindowDescFront<PerformanceRatingDetailWindow>(&_performance_rating_detail_desc, 0);
}
+
+void InitializeGraphGui()
+{
+ _legend_excluded_companies = 0;
+ _legend_excluded_cargo = 0;
+}
diff --git a/src/misc.cpp b/src/misc.cpp
index d9d506993..8151f2dd3 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -42,6 +42,7 @@ void InitializeRailGui();
void InitializeRoadGui();
void InitializeAirportGui();
void InitializeDockGui();
+void InitializeGraphGui();
void InitializeObjectGui();
void InitializeIndustries();
void InitializeObjects();
@@ -87,6 +88,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
InitializeRoadGui();
InitializeAirportGui();
InitializeDockGui();
+ InitializeGraphGui();
InitializeObjectGui();
InitializeAIGui();
InitializeTrees();