(svn r9065) -Fix: possible dereference of NULL pointer.

This commit is contained in:
rubidium 2007-03-08 13:54:19 +00:00
parent 70623e3488
commit c517f8fd6e
1 changed files with 1 additions and 1 deletions

View File

@ -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;