Changeset - r6256:add52b2eacba
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-03-08 13:54:19
rubidium@openttd.org
(svn r9065) -Fix: possible dereference of NULL pointer.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -70,7 +70,7 @@ bool CheckAllowRemoveRoad(TileIndex tile
 
		// 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;
0 comments (0 inline, 0 general)