summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-04 11:35:12 +0000
committerrubidium <rubidium@openttd.org>2010-01-04 11:35:12 +0000
commit3e481c4027b04ac85c6551e8a6e543ee0654b091 (patch)
tree23b0414ed5bd96a2499dd1cf05a6957ac55cbedd /src/road_cmd.cpp
parentabb147d9742f349513d076a76b2957eb573d78e7 (diff)
downloadopenttd-3e481c4027b04ac85c6551e8a6e543ee0654b091.tar.xz
(svn r18710) -Fix [FS#3478]: the wrong town is mentioned in the error when trying to make one way roads of town owned roads
Diffstat (limited to 'src/road_cmd.cpp')
-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 5a5e96257..a2fde8984 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -503,7 +503,7 @@ CommandCost CmdBuildRoad(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
if (crossing) return_cmd_error(STR_ERROR_ONEWAY_ROADS_CAN_T_HAVE_JUNCTION);
Owner owner = GetRoadOwner(tile, ROADTYPE_ROAD);
- if (owner != OWNER_NONE && !CheckOwnership(owner)) return CMD_ERROR;
+ if (owner != OWNER_NONE && !CheckOwnership(owner, tile)) return CMD_ERROR;
if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;