diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-12-01 00:44:57 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | c521b965bdad1a060f55a1292381c6dd033b99d2 (patch) | |
tree | cf4da729497c09815d9e187ab182c2d240b67360 /src/industry_cmd.cpp | |
parent | 2e39637db226f1326da7c2f0814b2dbb320191a1 (diff) | |
download | openttd-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.cpp | 2 |
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; } |