Fix deprecation warning about /Zc:forScope-

Fixed out-of-scope variables usage.
This commit is contained in:
Azamat H. Hackimov
2024-06-29 12:28:14 +03:00
parent 6ec444d9cc
commit 6f70379476
17 changed files with 144 additions and 116 deletions

View File

@@ -113,7 +113,7 @@ void SelectRangeDialog::OnOK() {
for (int i = 0; i < TERRAIN_WIDTH * TERRAIN_DEPTH; i++)
TerrainSelected[i] = 0;
Num_terrain_selected = 0;
for (i = 0; i < TERRAIN_WIDTH * TERRAIN_DEPTH; i++) {
for (int i = 0; i < TERRAIN_WIDTH * TERRAIN_DEPTH; i++) {
int selected = 1;
if (!(Terrain_seg[i].ypos >= LowerBound && Terrain_seg[i].ypos <= UpperBound))