fixing use of wrong indices, discovered during refactoring in survey::survey_mid_level_tile

- survey.cpp: replacing faulty repeated nested vector access (due to wrong indices) with the existing region_map_entry reference
develop
bseiller 2021-01-31 13:58:17 +01:00
parent 741e430a06
commit 115b8a439f
1 changed files with 2 additions and 2 deletions

@ -985,8 +985,8 @@ void embark_assist::survey::survey_mid_level_tile(embark_assist::defs::geo_data
elevation = 98;
}
if ((world_data->geo_biomes[world_data->region_map[x][y].geo_index]->unk1 == 4 ||
world_data->geo_biomes[world_data->region_map[x][y].geo_index]->unk1 == 5) &&
if ((world_data->geo_biomes[region_map_entry.geo_index]->unk1 == 4 ||
world_data->geo_biomes[region_map_entry.geo_index]->unk1 == 5) &&
details->unk12e8 < 500) {
max_soil_depth = 0;
}