diff options
author | kiwitree <kiwitreekor@gmail.com> | 2019-04-30 21:03:18 +0900 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-30 20:20:14 +0100 |
commit | 28b23a66437f5897841c7d9ccf6157c30ac9313a (patch) | |
tree | 0cf50278f332ee2c195dc0938b13463b1b323175 | |
parent | 14dc8dd619b28d63d11cfd7411886e41b692b753 (diff) | |
download | openttd-28b23a66437f5897841c7d9ccf6157c30ac9313a.tar.xz |
Fix: Crash on waypoint selection window
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 31da16238..2bee2d80f 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -2408,7 +2408,7 @@ struct SelectStationWindow : Window { void OnMouseOver(Point pt, int widget) override { - if (widget != WID_JS_PANEL) { + if (widget != WID_JS_PANEL || T::EXPECTED_FACIL == FACIL_WAYPOINT) { SetViewportCatchmentStation(nullptr, true); return; } |