diff --git a/main_gui.c b/main_gui.c index d229315289..c141c9e475 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2477,3 +2477,9 @@ void GameSizeChanged(void) ScreenSizeChanged(); MarkWholeScreenDirty(); } + +void InitializeMainGui(void) +{ + /* Clean old GUI values */ + _last_built_railtype = 0; +} diff --git a/misc.c b/misc.c index f0e3828bda..f8b2e0e90a 100644 --- a/misc.c +++ b/misc.c @@ -104,6 +104,7 @@ void InitializeAirportGui(void); void InitializeDock(void); void InitializeDockGui(void); void InitializeIndustries(void); +void InitializeMainGui(void); void InitializeLandscape(void); void InitializeTowns(void); void InitializeTrees(void); @@ -168,6 +169,7 @@ void InitializeGame(int mode, uint size_x, uint size_y) InitializeSigns(); InitializeStations(); InitializeIndustries(); + InitializeMainGui(); InitializeNameMgr(); InitializeVehiclesGuiList();