(svn r14596) -Fix (r14591): Missing 'return'.

This commit is contained in:
frosch 2008-11-19 16:53:24 +00:00
parent aa126066b7
commit 1e991548ac
1 changed files with 1 additions and 1 deletions

View File

@ -2480,7 +2480,7 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold)
TownID tid = GetTownIndex(tile);
if (tid == (TownID)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);
return NULL;
}