# HG changeset patch # User rubidium # Date 1172189416 0 # Node ID c3ae49ab2bb27dad9bfe981bd85ae033cecf206f # Parent 466aa6880749099a596dd0cbd85529bcb8a9796d (svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority. diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1348,7 +1348,7 @@ 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);