Mercurial > hg > openttd
changeset 6256:f7a3e330a35c draft
(svn r9065) -Fix: possible dereference of NULL pointer.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 08 Mar 2007 13:54:19 +0000 |
parents | f93184e4a261 |
children | d7d39048e2ee |
files | src/road_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -70,7 +70,7 @@ // you can remove all kind of roads with extra dynamite if (_patches.extra_dynamite) return true; - t = ClosestTownFromTile(tile, _patches.dist_local_authority); + t = ClosestTownFromTile(tile, (uint)-1); SetDParam(0, t->index); _error_message = STR_2009_LOCAL_AUTHORITY_REFUSES;