summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-23 00:10:16 +0000
committerrubidium <rubidium@openttd.org>2007-02-23 00:10:16 +0000
commitdcb217a6ace27ae989a59d8503c139f613694b1b (patch)
tree7d0e6844a78027590e31139d1e9b798f93b0d3fd /src
parent89613b6cc4085210dfea681d22b79fe21df3d41b (diff)
downloadopenttd-dcb217a6ace27ae989a59d8503c139f613694b1b.tar.xz
(svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority.
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index da42a4447..8f90b8d21 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1348,7 +1348,7 @@ int32 CmdRemoveRoadStop(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
Owner cur_owner = _current_player;
if (is_towns_road) {
- index = ClosestTownFromTile(tile, _patches.dist_local_authority)->index;
+ index = ClosestTownFromTile(tile, (uint)-1)->index;
_current_player = OWNER_TOWN;
}
DoCommand(tile, road_bits, index, DC_EXEC, CMD_BUILD_ROAD);