From dcb217a6ace27ae989a59d8503c139f613694b1b Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 23 Feb 2007 00:10:16 +0000 Subject: [PATCH] (svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority. --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index da42a44478..8f90b8d21c 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);