(svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost.

This commit is contained in:
alberth 2010-02-28 09:44:35 +00:00
parent eae120361d
commit f73898a4ef
1 changed files with 1 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ static CommandCost CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTil
/* Clear the tiles as OWNER_TOWN to not affect town rating, and to not clear protected buildings */
CompanyID old_company = _current_company;
_current_company = OWNER_TOWN;
CommandCost ret = DoCommand(cur_tile, 0, 0, DC_NONE, CMD_LANDSCAPE_CLEAR).Failed();
CommandCost ret = DoCommand(cur_tile, 0, 0, DC_NONE, CMD_LANDSCAPE_CLEAR);
_current_company = old_company;
if (ret.Failed()) return ret;