Fix: Crash on waypoint selection window

This commit is contained in:
kiwitree 2019-04-30 21:03:18 +09:00 committed by PeterN
parent 14dc8dd619
commit 28b23a6643
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}