diff options
author | rubidium <rubidium@openttd.org> | 2010-01-04 11:35:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-04 11:35:12 +0000 |
commit | 3e481c4027b04ac85c6551e8a6e543ee0654b091 (patch) | |
tree | 23b0414ed5bd96a2499dd1cf05a6957ac55cbedd /src/tunnelbridge_cmd.cpp | |
parent | abb147d9742f349513d076a76b2957eb573d78e7 (diff) | |
download | openttd-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/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 0b199bb4e..bdf7ced77 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -589,7 +589,7 @@ static inline bool CheckAllowRemoveTunnelBridge(TileIndex tile) if (road_owner == OWNER_NONE || road_owner == OWNER_TOWN) road_owner = _current_company; if (tram_owner == OWNER_NONE) tram_owner = _current_company; - return CheckOwnership(road_owner) && CheckOwnership(tram_owner); + return CheckOwnership(road_owner, tile) && CheckOwnership(tram_owner, tile); } case TRANSPORT_RAIL: |