Skip to content

Commit

Permalink
change secondary creation to previous state
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDoerner committed Mar 28, 2024
1 parent 8764549 commit b4c889f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Candidate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void Candidate::addSecondary(Candidate *c) {
}

void Candidate::addSecondary(int id, double energy, double w, std::string tagOrigin) {
addSecondary(id, energy, current.getPosition(), w, tagOrigin);
addSecondary(id, energy, previous.getPosition(), w, tagOrigin);
}

void Candidate::addSecondary(int id, double energy, Vector3d position, double w, std::string tagOrigin) {
Expand Down

0 comments on commit b4c889f

Please sign in to comment.