diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/terraform_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp index 5b476da18..9839f5e34 100644 --- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -313,7 +313,7 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin for (TileIndexSet::const_iterator it = ts.dirty_tiles.begin(); it != ts.dirty_tiles.end(); it++) { MarkTileDirtyByTile(*it); TileIndexToHeightMap::const_iterator new_height = ts.tile_to_new_height.find(tile); - if (new_height != ts.tile_to_new_height.end()) continue; + if (new_height == ts.tile_to_new_height.end()) continue; MarkTileDirtyByTile(*it, 0, new_height->second); } |