Skip to content

Commit

Permalink
fix #15547
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Oct 7, 2024
1 parent 215b455 commit b3d860d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/netbuild/NBOwnTLDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,10 @@ NBOwnTLDef::patchNEMAStateForCrossings(const std::string& state,
//std::cout << " patchNEMAStateForCrossings green=" << greenEdge->getID() << " other=" << Named::getIDSecure(otherChosen) << " end=" << Named::getIDSecure(end) << " all=" << toString(all) << "\n";

EdgeVector::const_iterator end = std::find(all.begin(), all.end(), endEdge);
if (end == all.end()) {
// at least prevent an infinite loop
end = start;
}
auto it = start;
NBContHelper::nextCCW(all, it);
for (; it != end; NBContHelper::nextCCW(all, it)) {
Expand Down

0 comments on commit b3d860d

Please sign in to comment.