From f73898a4ef4deb9850c1700e9f5dec5a1beb2e07 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 28 Feb 2010 09:44:35 +0000 Subject: [PATCH] (svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost. --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index d07c135086..36c8eccd40 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -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;