mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r9065) -Fix: possible dereference of NULL pointer.
This commit is contained in:
parent
70623e3488
commit
c517f8fd6e
@ -70,7 +70,7 @@ bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *ed
|
|||||||
// you can remove all kind of roads with extra dynamite
|
// you can remove all kind of roads with extra dynamite
|
||||||
if (_patches.extra_dynamite) return true;
|
if (_patches.extra_dynamite) return true;
|
||||||
|
|
||||||
t = ClosestTownFromTile(tile, _patches.dist_local_authority);
|
t = ClosestTownFromTile(tile, (uint)-1);
|
||||||
|
|
||||||
SetDParam(0, t->index);
|
SetDParam(0, t->index);
|
||||||
_error_message = STR_2009_LOCAL_AUTHORITY_REFUSES;
|
_error_message = STR_2009_LOCAL_AUTHORITY_REFUSES;
|
||||||
|
Loading…
Reference in New Issue
Block a user