summaryrefslogtreecommitdiff
path: root/src/roadstop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/roadstop.cpp')
-rw-r--r--src/roadstop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadstop.cpp b/src/roadstop.cpp
index acefa8362..694e33f0d 100644
--- a/src/roadstop.cpp
+++ b/src/roadstop.cpp
@@ -45,7 +45,7 @@ RoadStop *RoadStop::GetNextRoadStop(const RoadVehicle *v) const
{
for (RoadStop *rs = this->next; rs != nullptr; rs = rs->next) {
/* The vehicle cannot go to this roadstop (different roadtype) */
- if ((GetRoadTypes(rs->xy) & v->compatible_roadtypes) == ROADTYPES_NONE) continue;
+ if (!HasTileAnyRoadType(rs->xy, v->compatible_roadtypes)) continue;
/* The vehicle is articulated and can therefore not go to a standard road stop. */
if (IsStandardRoadStopTile(rs->xy) && v->HasArticulatedPart()) continue;