Skip to content

Commit

Permalink
stop foe lane search for incomplete routes ref #14201
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Feb 5, 2024
1 parent 9edb474 commit a850393
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/microsim/devices/MSDevice_SSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2907,6 +2907,10 @@ MSDevice_SSM::findFoeConflictLane(const MSVehicle* foe, const MSLane* egoConflic
}
MSLane* const nextNonInternalLane = *laneIter;
const MSLink* const link = foeLane->getLinkTo(nextNonInternalLane);
if (link == nullptr) {
// encountered incomplete route
return nullptr;
}
// Set foeLane to first internal lane on the next junction
foeLane = link->getViaLane();
assert(foeLane == 0 || foeLane->isInternal());
Expand Down

0 comments on commit a850393

Please sign in to comment.