Changeset - r23859:0f8a1642d1f3
[Not reviewed]
master
0 2 0
stormcone - 5 years ago 2019-07-12 19:43:58
48624099+stormcone@users.noreply.github.com
Fix #7635: Game crash on exit scenario editor.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/dock_gui.cpp
Show inline comments
 
@@ -105,7 +105,7 @@ struct BuildDocksToolbarWindow : Window 
 

	
 
	~BuildDocksToolbarWindow()
 
	{
 
		if (_game_mode != GM_EDITOR && this->IsWidgetLowered(WID_DT_STATION)) SetViewportCatchmentStation(nullptr, true);
 
		if (_game_mode == GM_NORMAL && this->IsWidgetLowered(WID_DT_STATION)) SetViewportCatchmentStation(nullptr, true);
 
		if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false);
 
	}
 

	
src/road_gui.cpp
Show inline comments
 
@@ -293,7 +293,7 @@ struct BuildRoadToolbarWindow : Window {
 

	
 
	~BuildRoadToolbarWindow()
 
	{
 
		if (_game_mode != GM_EDITOR && (this->IsWidgetLowered(WID_ROT_BUS_STATION) || this->IsWidgetLowered(WID_ROT_TRUCK_STATION))) SetViewportCatchmentStation(nullptr, true);
 
		if (_game_mode == GM_NORMAL && (this->IsWidgetLowered(WID_ROT_BUS_STATION) || this->IsWidgetLowered(WID_ROT_TRUCK_STATION))) SetViewportCatchmentStation(nullptr, true);
 
		if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false);
 
	}
 

	
0 comments (0 inline, 0 general)