summaryrefslogtreecommitdiff
path: root/src/road.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/road.cpp')
-rw-r--r--src/road.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road.cpp b/src/road.cpp
index 705270186..0da0d8ae0 100644
--- a/src/road.cpp
+++ b/src/road.cpp
@@ -64,7 +64,7 @@ RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
/* Accept only connective tiles */
connective = (neighbor_rb & mirrored_rb) || // Neighbor has got the fitting RoadBit
- CountBits(neighbor_rb) == 1; // Neighbor has got only one Roadbit
+ HasExactlyOneBit(neighbor_rb); // Neighbor has got only one Roadbit
} break;