Skip to content

Commit

Permalink
fix #14524
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 21, 2024
1 parent 61ceed9 commit c2dcdd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/router/IntermodalNetwork.h
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,11 @@ class IntermodalNetwork {
beforeSplit->transferSuccessors(afterSplit);
beforeSplit->addSuccessor(afterSplit);
if (forward) {
afterSplit->setLength(beforeSplit->getLength() - relPos);
afterSplit->setLength(MAX2(0.0, beforeSplit->getLength() - relPos));
beforeSplit->setLength(relPos);
} else {
afterSplit->setLength(relPos);
beforeSplit->setLength(beforeSplit->getLength() - relPos);
beforeSplit->setLength(MAX2(0.0, beforeSplit->getLength() - relPos));
// rename backward edges for easier referencing
const std::string newID = beforeSplit->getID();
beforeSplit->setID(afterSplit->getID());
Expand Down

0 comments on commit c2dcdd1

Please sign in to comment.