Mercurial > hg > openttd
diff src/road_cmd.cpp @ 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 (2007-03-08) |
parents | 0789677a15a0 |
children | 4a39d6291d58 |
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;