summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-12-01 00:44:57 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commitc521b965bdad1a060f55a1292381c6dd033b99d2 (patch)
treecf4da729497c09815d9e187ab182c2d240b67360 /src/industry_cmd.cpp
parent2e39637db226f1326da7c2f0814b2dbb320191a1 (diff)
downloadopenttd-c521b965bdad1a060f55a1292381c6dd033b99d2.tar.xz
Codechange: Don't use a global for the terrforming error tile.
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 ef5f24315..41ee3ac06 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1601,7 +1601,7 @@ static bool CheckIfCanLevelIndustryPlatform(TileIndex tile, DoCommandFlag flags,
}
/* This is not 100% correct check, but the best we can do without modifying the map.
* What is missing, is if the difference in height is more than 1.. */
- if (Command<CMD_TERRAFORM_LAND>::Do(flags & ~DC_EXEC, tile_walk, SLOPE_N, curh <= h).Failed()) {
+ if (std::get<0>(Command<CMD_TERRAFORM_LAND>::Do(flags & ~DC_EXEC, tile_walk, SLOPE_N, curh <= h)).Failed()) {
cur_company.Restore();
return false;
}