1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 02:59:10 +00:00

(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

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;