Changeset - r23210:04e3fa9c94e4
[Not reviewed]
master
0 1 0
Peter Nelson - 5 years ago 2019-01-25 23:16:34
peter1138@openttd.org
Fix #7098, Fix #7061: Inverted test led to invalid iterator access.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/terraform_cmd.cpp
Show inline comments
 
@@ -313,7 +313,7 @@ CommandCost CmdTerraformLand(TileIndex t
 
		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);
 
		}
 

	
0 comments (0 inline, 0 general)