Skip to content

Commit

Permalink
fix sign
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 5, 2023
1 parent 23c02ef commit 5f75bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/include/Acts/TrackFitting/detail/FitterHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ auto getTrackStateProxy(propagator_state_t &state, const stepper_t &stepper,
size_t currentTrackIndex = Acts::MultiTrajectoryTraits::kInvalid;

if (getOnLastTrackIndex) {
if (lastTrackIndex < fittedStates.size() - 1 ||
if (lastTrackIndex >= fittedStates.size() ||
lastTrackIndex == Acts::MultiTrajectoryTraits::kInvalid) {
ACTS_WARNING("No TrackState with index "
<< lastTrackIndex << " found. Add new TrackState.");
Expand Down

0 comments on commit 5f75bc4

Please sign in to comment.