Mercurial > hg > openttd
changeset 14703:4132aa41e284 draft
(svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost.
author | alberth <alberth@openttd.org> |
---|---|
date | Sun, 28 Feb 2010 09:44:35 +0000 |
parents | 66e6b13805cb |
children | db0194d98616 |
files | src/industry_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1366,7 +1366,7 @@ /* 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;