summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 8bbd33c97..85a029585 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -204,7 +204,7 @@ int32 CmdRemoveRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
} else if (ti.type == MP_STREET) {
// check if you're allowed to remove the street owned by a town
// removal allowance depends on difficulty setting
- if (!CheckforTownRating(tile, flags, t, ROAD_REMOVE)) return CMD_ERROR;
+ if (!CheckforTownRating(flags, t, ROAD_REMOVE)) return CMD_ERROR;
// XXX - change cascading ifs to switch when doing rewrite
if ((ti.map5 & 0xF0) == 0) { // normal road