Skip to content

Commit

Permalink
Resolve #3532: reset i (#3597)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski committed Jun 9, 2023
1 parent f4f6152 commit 8b72277
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nav2_theta_star_planner/src/theta_star.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,13 @@ void ThetaStar::resetContainers()

void ThetaStar::initializePosn(int size_inc)
{
int i = 0;

if (!node_position_.empty()) {
for (; i < size_x_ * size_y_; i++) {
for (int i = 0; i < size_x_ * size_y_; i++) {
node_position_[i] = nullptr;
}
}

for (; i < size_inc; i++) {
for (int i = 0; i < size_inc; i++) {
node_position_.push_back(nullptr);
}
}
Expand Down

0 comments on commit 8b72277

Please sign in to comment.