summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-11-19 16:53:24 +0000
committerfrosch <frosch@openttd.org>2008-11-19 16:53:24 +0000
commit1e991548ac31e6377f656e05a336d952feeea6a0 (patch)
tree82001ea66ff95e7dc112d807000ade21dcb5e6bb /src
parentaa126066b7116612798aec10719244a5ff49a99c (diff)
downloadopenttd-1e991548ac31e6377f656e05a336d952feeea6a0.tar.xz
(svn r14596) -Fix (r14591): Missing 'return'.
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 58f9a5e32..a2411f7ce 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -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;
}