From 3e481c4027b04ac85c6551e8a6e543ee0654b091 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Jan 2010 11:35:12 +0000 Subject: (svn r18710) -Fix [FS#3478]: the wrong town is mentioned in the error when trying to make one way roads of town owned roads --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/road_cmd.cpp') 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; -- cgit v1.2.3-54-g00ecf