(svn r9065) -Fix: possible dereference of NULL pointer.
authorrubidium
Thu, 08 Mar 2007 13:54:19 +0000
changeset 6256 24e274c0ae42
parent 6255 149372cc2dcf
child 6257 5e5a864cacf6
(svn r9065) -Fix: possible dereference of NULL pointer.
src/road_cmd.cpp
--- a/src/road_cmd.cpp	Thu Mar 08 12:57:08 2007 +0000
+++ b/src/road_cmd.cpp	Thu Mar 08 13:54:19 2007 +0000
@@ -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;