summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-08 13:54:19 +0000
committerrubidium <rubidium@openttd.org>2007-03-08 13:54:19 +0000
commit4ca294dfffa7e7caa4d2e31a249f681328b649c7 (patch)
tree4a3d80e878807802c5d972a30eb28ab510652525
parentd893909daa3d29a62bdcf75ed6ffbaa4ce80c181 (diff)
downloadopenttd-4ca294dfffa7e7caa4d2e31a249f681328b649c7.tar.xz
(svn r9065) -Fix: possible dereference of NULL pointer.
-rw-r--r--src/road_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index b2ff51e5a..4445f6ee3 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -70,7 +70,7 @@ bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *ed
// 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;