diff options
author | alberth <alberth@openttd.org> | 2010-02-28 09:44:35 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-02-28 09:44:35 +0000 |
commit | f73898a4ef4deb9850c1700e9f5dec5a1beb2e07 (patch) | |
tree | ccce7054a3b32416beab46a4e8b2664e56a78aa5 | |
parent | eae120361dc58d8f8cbea89ec19841a243bf0eda (diff) | |
download | openttd-f73898a4ef4deb9850c1700e9f5dec5a1beb2e07.tar.xz |
(svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost.
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index d07c13508..36c8eccd4 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; |