diff --git a/plugins/embark-assistant/matcher.cpp b/plugins/embark-assistant/matcher.cpp index e15dacd90..2b5e4728b 100644 --- a/plugins/embark-assistant/matcher.cpp +++ b/plugins/embark-assistant/matcher.cpp @@ -498,7 +498,7 @@ namespace embark_assist { else { process_embark_incursion(result, survey_results, - &survey_results->at(fetch_x).at(fetch_y).south_row[i], + &survey_results->at(fetch_x).at(fetch_y).south_row[fetch_i], finder, mlt->at(i).at(k).elevation, fetch_x, @@ -530,7 +530,7 @@ namespace embark_assist { else { process_embark_incursion(result, survey_results, - &survey_results->at(fetch_x).at(fetch_y).north_row[i], + &survey_results->at(fetch_x).at(fetch_y).north_row[fetch_i], finder, mlt->at(i).at(k).elevation, fetch_x, @@ -542,7 +542,7 @@ namespace embark_assist { if (fetch_i < 0) { process_embark_incursion(result, survey_results, - &survey_results->at(fetch_x).at(fetch_y).east_column[k], + &survey_results->at(fetch_x).at(fetch_y).east_column[fetch_k], finder, mlt->at(i).at(k).elevation, fetch_x, @@ -552,7 +552,7 @@ namespace embark_assist { else if (fetch_i > 15) { process_embark_incursion(result, survey_results, - &survey_results->at(fetch_x).at(fetch_y).west_column[k], + &survey_results->at(fetch_x).at(fetch_y).west_column[fetch_k], finder, mlt->at(i).at(k).elevation, fetch_x, diff --git a/plugins/embark-assistant/survey.cpp b/plugins/embark-assistant/survey.cpp index cab5254dc..d2e23f666 100644 --- a/plugins/embark-assistant/survey.cpp +++ b/plugins/embark-assistant/survey.cpp @@ -601,7 +601,7 @@ namespace embark_assist { else { process_embark_incursion(site_info, survey_results, - &survey_results->at(fetch_x).at(fetch_y).south_row[i], + &survey_results->at(fetch_x).at(fetch_y).south_row[fetch_i], mlt->at(i).at(k).elevation, fetch_x, fetch_y); @@ -627,7 +627,7 @@ namespace embark_assist { else { process_embark_incursion(site_info, survey_results, - &survey_results->at(fetch_x).at(fetch_y).north_row[i], + &survey_results->at(fetch_x).at(fetch_y).north_row[fetch_i], mlt->at(i).at(k).elevation, fetch_x, fetch_y); @@ -637,7 +637,7 @@ namespace embark_assist { if (fetch_i < 0) { process_embark_incursion(site_info, survey_results, - &survey_results->at(fetch_x).at(fetch_y).east_column[k], + &survey_results->at(fetch_x).at(fetch_y).east_column[fetch_k], mlt->at(i).at(k).elevation, fetch_x, fetch_y); @@ -645,7 +645,7 @@ namespace embark_assist { else if (fetch_i > 15) { process_embark_incursion(site_info, survey_results, - &survey_results->at(fetch_x).at(fetch_y).west_column[k], + &survey_results->at(fetch_x).at(fetch_y).west_column[fetch_k], mlt->at(i).at(k).elevation, fetch_x, fetch_y);