summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-02-28 09:44:35 +0000
committeralberth <alberth@openttd.org>2010-02-28 09:44:35 +0000
commitf73898a4ef4deb9850c1700e9f5dec5a1beb2e07 (patch)
treeccce7054a3b32416beab46a4e8b2664e56a78aa5 /src/industry_cmd.cpp
parenteae120361dc58d8f8cbea89ec19841a243bf0eda (diff)
downloadopenttd-f73898a4ef4deb9850c1700e9f5dec5a1beb2e07.tar.xz
(svn r19287) -Fix [FS#3650] (r19263): Don't store a boolean in a CommandCost.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
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;