Skip to content

Commit

Permalink
fixing a bug in the spline code where a vector was being accessed bey…
Browse files Browse the repository at this point in the history
…ond it's length
  • Loading branch information
EdAtkin committed Oct 17, 2024
1 parent 47d2370 commit c7cf4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splines/SplineMonolith.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ void SMonolith::ScanMasterSpline(std::vector<std::vector<TResponseFunction_red*>
for (_int_ i = 0; i < numParams; ++i)
{
// KS: We don't find segment for TF1, so ignore this
if (SplineType[numParams] == kTF1_red) continue;
if (SplineType[i] == kTF1_red) continue;

const _int_ nPoints = SplineInfoArray[i].nPts;
const _float_* xArray = SplineInfoArray[i].xPts;
Expand Down

0 comments on commit c7cf4ee

Please sign in to comment.