From c517f8fd6e9b028c1266ba107b3ab1caadf7c34b Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Mar 2007 13:54:19 +0000 Subject: [PATCH] (svn r9065) -Fix: possible dereference of NULL pointer. --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index b2ff51e5af..4445f6ee37 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;