Skip to content
Permalink
Browse files

Fix #7635: Game crash on exit scenario editor.

  • Loading branch information...
stormcone authored and LordAro committed Jul 12, 2019
1 parent 48fd7b2 commit 1e5029563cb68e53e41299a5d92e317566d7ba66
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/dock_gui.cpp
  2. +1 −1 src/road_gui.cpp
@@ -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);
}

@@ -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 on commit 1e50295

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