summaryrefslogtreecommitdiff
path: root/src
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
commitc517f8fd6e9b028c1266ba107b3ab1caadf7c34b (patch)
tree4a3d80e878807802c5d972a30eb28ab510652525 /src
parent70623e348819d9da33111e7b4a83bf0c7a8ce9c0 (diff)
downloadopenttd-c517f8fd6e9b028c1266ba107b3ab1caadf7c34b.tar.xz
(svn r9065) -Fix: possible dereference of NULL pointer.
Diffstat (limited to 'src')
-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;