Skip to content

Commit

Permalink
fix: Comparison error in DirectNavigator (acts-project#3424)
Browse files Browse the repository at this point in the history
This can cause an out-of-bounds-exception.
  • Loading branch information
benjaminhuth authored Jul 22, 2024
1 parent 64d681b commit 9a1b306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/include/Acts/Propagator/DirectNavigator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class DirectNavigator {
<< state.navigation.currentSurface->geometryId());
// Move the sequence to the next surface
++state.navigation.surfaceIndex;
if (state.navigation.surfaceIndex >=
if (state.navigation.surfaceIndex <
state.navigation.options.surfaces.size()) {
ACTS_VERBOSE("Next surface candidate is "
<< state.navigation.options.surfaces
Expand Down

0 comments on commit 9a1b306

Please sign in to comment.