Fix: Road stop availability callback (#12931)

This commit is contained in:
Jonathan G Rennison 2024-09-07 14:57:04 +01:00 committed by GitHub
parent d5ff6b4156
commit 5c243ee8f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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