From 1e991548ac31e6377f656e05a336d952feeea6a0 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 19 Nov 2008 16:53:24 +0000 Subject: [PATCH] (svn r14596) -Fix (r14591): Missing 'return'. --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 58f9a5e328..a2411f7ce7 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; }