mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: Crash on waypoint selection window
This commit is contained in:
parent
14dc8dd619
commit
28b23a6643
|
@ -2408,7 +2408,7 @@ struct SelectStationWindow : Window {
|
||||||
|
|
||||||
void OnMouseOver(Point pt, int widget) override
|
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);
|
SetViewportCatchmentStation(nullptr, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue