summaryrefslogtreecommitdiff
path: root/src/dock_gui.cpp
diff options
context:
space:
mode:
authorstormcone <48624099+stormcone@users.noreply.github.com>2019-07-12 21:43:58 +0200
committerCharles Pigott <charlespigott@googlemail.com>2019-10-08 00:21:18 +0100
commit1e5029563cb68e53e41299a5d92e317566d7ba66 (patch)
treef30d17669b144252d98a734f20d357e765e7a026 /src/dock_gui.cpp
parent48fd7b279222c1288004bf1bf8466d1084fbbf4b (diff)
downloadopenttd-1e5029563cb68e53e41299a5d92e317566d7ba66.tar.xz
Fix #7635: Game crash on exit scenario editor.
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r--src/dock_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index 785bbc5fb..7fdaa1d8f 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_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);
}