diff options
author | rubidium <rubidium@openttd.org> | 2010-02-26 10:08:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-02-26 10:08:16 +0000 |
commit | 45f34a42038665db891c27ef697b3a4bd2974f70 (patch) | |
tree | 7b8b2066013d0bae1c06a9a15fe26d6e250c0f66 /src/industry_cmd.cpp | |
parent | eb220617d555925879a9e81a7911769b8f6c5a9d (diff) | |
download | openttd-45f34a42038665db891c27ef697b3a4bd2974f70.tar.xz |
(svn r19265) -Fix [FS#3618]: "Can't build <industry> here... <industry> in the way" showed the to-be-built industry twice, instead of the to-be-built industry and the industry that's in the way
Diffstat (limited to 'src/industry_cmd.cpp')
-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 3149862b6..ec52c15b0 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -477,7 +477,7 @@ static CommandCost ClearTile_Industry(TileIndex tile, DoCommandFlag flags) (_current_company == OWNER_WATER && ((indspec->behaviour & INDUSTRYBEH_BUILT_ONWATER) || HasBit(GetIndustryTileSpec(GetIndustryGfx(tile))->slopes_refused, 5)))) { - SetDParam(0, indspec->name); + SetDParam(1, indspec->name); return_cmd_error(flags & DC_AUTO ? STR_ERROR_UNMOVABLE_OBJECT_IN_THE_WAY : INVALID_STRING_ID); } |