Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Nov 20, 2020
1 parent 0efe98e commit e655835
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/microsim/devices/MSDevice_SSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3036,7 +3036,10 @@ MSDevice_SSM::findSurroundingVehicles(const MSVehicle& veh, double range, FoeInf
link = lane->getOpposite()->getLinkTo(nextNonInternalLane);
}
}
assert(link != 0 || link->getLength() == 0.);
if (link == nullptr) {
// disconnected route
break;
}

// First lane of the connection
lane = link->getViaLane();
Expand Down

0 comments on commit e655835

Please sign in to comment.