mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 19:09:09 +00:00
(svn r14596) -Fix (r14591): Missing 'return'.
This commit is contained in:
@@ -2480,7 +2480,7 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold)
|
|||||||
TownID tid = GetTownIndex(tile);
|
TownID tid = GetTownIndex(tile);
|
||||||
if (tid == (TownID)INVALID_TOWN) {
|
if (tid == (TownID)INVALID_TOWN) {
|
||||||
/* in the case we are generating "many random towns", this value may be INVALID_TOWN */
|
/* in the case we are generating "many random towns", this value may be INVALID_TOWN */
|
||||||
if (_generating_world) CalcClosestTownFromTile(tile, threshold);
|
if (_generating_world) return CalcClosestTownFromTile(tile, threshold);
|
||||||
assert(GetNumTowns() == 0);
|
assert(GetNumTowns() == 0);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user