From 3e3a34af990406969262f1ed16b692908b5372f3 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Wed, 16 Dec 2020 10:59:27 +0100 Subject: [PATCH] corrected index usage --- plugins/embark-assistant/matcher.cpp | 8 ++++---- plugins/embark-assistant/survey.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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);