diff --git a/src/UsgsAstroLsSensorModel.cpp b/src/UsgsAstroLsSensorModel.cpp index be87bde4e07fea758718ee917cb45c4d9043ea80..0d0a756626816d4acaf3349669c49901c653e27a 100644 --- a/src/UsgsAstroLsSensorModel.cpp +++ b/src/UsgsAstroLsSensorModel.cpp @@ -1946,7 +1946,7 @@ void UsgsAstroLsSensorModel::getAdjSensorPosVel(const double& time, if (!calc_vel) { bool has_adj = false; for (size_t it = 0; it < adj.size(); it++) { - if (adj[it] != 0) has_adj = true; + if (getValue(it, adj) != 0) has_adj = true; } if (!has_adj) { xc = sensPosNom[0];