Skip to content
Permalink
Browse files

Fix OpenTTD#5654: (Re)initialise graph GUI on game (re)start (OpenTTD…

  • Loading branch information
GabdaZM authored and nielsmh committed Feb 7, 2019
1 parent 88e1575 commit 60315f583e3436aedab3849138b50a5f8c1d70d7
Showing with 8 additions and 0 deletions.
  1. +6 −0 src/graph_gui.cpp
  2. +2 −0 src/misc.cpp
@@ -1580,3 +1580,9 @@ void ShowPerformanceRatingDetail()
{
AllocateWindowDescFront<PerformanceRatingDetailWindow>(&_performance_rating_detail_desc, 0);
}

void InitializeGraphGui()
{
_legend_excluded_companies = 0;
_legend_excluded_cargo = 0;
}
@@ -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();

0 comments on commit 60315f5

Please sign in to comment.
You can’t perform that action at this time.