Skip to content

Commit

Permalink
fix #14474
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 13, 2024
1 parent 04b2d90 commit 0248956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/microsim/MSLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ MSLink::setRequestInformation(int index, bool hasFoes, bool isCont,
myOffFoeLinks = new std::vector<MSLink*>();
if (isEntryLink()) {
for (MSLane* foeLane : foeLanes) {
assert(foeLane->isInternal());
assert(foeLane->isInternal() || foeLane->isCrossing());
MSLink* viaLink = foeLane->getIncomingLanes().front().viaLink;
if (viaLink->getLaneBefore()->isNormal()) {
myOffFoeLinks->push_back(viaLink);
Expand Down
5 changes: 4 additions & 1 deletion src/microsim/traffic_lights/NEMAController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,10 @@ NEMALogic::getLaneInfoFromNEMAState(std::string state, StringVector& laneIDs, In
if (ch == 'G') {
stateIndex.push_back(i);
for (auto link : myLinks[i]) {
laneIDs.push_back(link->getLaneBefore()->getID());
const MSLane* incoming = link->getLaneBefore();
if (incoming->isNormal()) {
laneIDs.push_back(incoming->getID());
}
}
}
}
Expand Down

0 comments on commit 0248956

Please sign in to comment.