Mercurial > hg > openttd
changeset 6115:c3ae49ab2bb2 draft
(svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 23 Feb 2007 00:10:16 +0000 |
parents | 466aa6880749 |
children | 05018fddac7b |
files | src/station_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);