1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-14 10:09:11 +00:00

Fix e740c24: Use correct command flag, not just DC_EXEC

This commit is contained in:
Tyler Trahan
2022-02-22 14:09:13 -07:00
committed by Michael Lutz
parent 22f6502b14
commit 89dba56782

View File

@@ -1373,7 +1373,7 @@ static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlag flags, int
/* Canals can't be terraformed */
if (IsWaterTile(tile) && IsCanal(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST);
return Command<CMD_LANDSCAPE_CLEAR>::Do(DC_EXEC, tile);
return Command<CMD_LANDSCAPE_CLEAR>::Do(flags, tile);
}