Skip to content

Commit

Permalink
fix #14534
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 18, 2024
1 parent 53a6e3a commit c86b88a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/netbuild/NBPTLineCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ void NBPTLineCont::constructRoute(NBPTLine* pTLine, const NBEdgeCont& cont) {
NBNode* last = nullptr;
std::vector<NBEdge*> prevWayEdges;
std::vector<NBEdge*> prevWayMinusEdges;
prevWayEdges.clear();
prevWayMinusEdges.clear();
std::vector<NBEdge*> currentWayEdges;
std::vector<NBEdge*> currentWayMinusEdges;
for (auto it3 = pTLine->getWays().begin(); it3 != pTLine->getWays().end(); it3++) {
Expand Down Expand Up @@ -332,7 +330,7 @@ void NBPTLineCont::constructRoute(NBPTLine* pTLine, const NBEdgeCont& cont) {
int i = 0;
while (cont.retrieve("-" + *it3 + "#" + std::to_string(i), true) != nullptr) {
if (cont.retrieve("-" + *it3 + "#" + std::to_string(i), false)) {
currentWayMinusEdges.insert(currentWayMinusEdges.begin(),
currentWayMinusEdges.insert(currentWayMinusEdges.end() - foundReverse,
cont.retrieve("-" + *it3 + "#" + std::to_string(i), false));
foundReverse++;
}
Expand All @@ -352,8 +350,10 @@ void NBPTLineCont::constructRoute(NBPTLine* pTLine, const NBEdgeCont& cont) {
<< " done=" << toString(edges)
<< " first=" << Named::getIDSecure(first)
<< " last=" << Named::getIDSecure(last)
<< " +=" << toString(currentWayEdges)
<< " -=" << toString(currentWayMinusEdges)
<< "\n +=" << toString(currentWayEdges)
<< "\n -=" << toString(currentWayMinusEdges)
<< "\n p+=" << toString(prevWayEdges)
<< "\n p-=" << toString(prevWayMinusEdges)
<< "\n";
}
#endif
Expand Down

0 comments on commit c86b88a

Please sign in to comment.