From 5c243ee8f06c5e13933a2ccc44f68bbfd90ab9fd Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 7 Sep 2024 14:57:04 +0100 Subject: [PATCH] Fix: Road stop availability callback (#12931) --- src/road_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 27066a2144..cbbd132cdc 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -101,7 +101,7 @@ static bool IsRoadStopEverAvailable(const RoadStopSpec *spec, StationType type) static bool IsRoadStopAvailable(const RoadStopSpec *spec, StationType type) { if (spec == nullptr) return true; - if (IsRoadStopEverAvailable(spec, type)) return true; + if (!IsRoadStopEverAvailable(spec, type)) return false; if (!HasBit(spec->callback_mask, CBM_ROAD_STOP_AVAIL)) return true;