summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/road_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index cd9ba5deb..2f51656bb 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -438,7 +438,7 @@ do_clear:;
cost += ret;
}
- if (all_bits != existing) {
+ if (all_bits != pieces) {
/* Check the foundation/slopes when adding road/tram bits */
ret = CheckRoadSlope(tileh, &pieces, all_bits | existing);
/* Return an error if we need to build a foundation (ret != 0) but the