Skip to content

Commit

Permalink
fix #14558
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 20, 2024
1 parent 75cd4c5 commit ac2e9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/microsim/transportables/MSStageTrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ MSStageTrip::setArrived(MSNet* net, MSTransportable* transportable, SUMOTime now
if (transportable->getNumStages() == oldNumStages) {
// append stage so the GUI won't crash due to inconsistent state
if (myOriginStop != nullptr && myOriginStop == myDestinationStop) {
transportable->appendStage(new MSStageWaiting(myDestination, myDestinationStop, 0, -1, previous->getArrivalPos(), "sameStop", false));
transportable->appendStage(new MSStageWaiting(myDestination, myDestinationStop, 0, -1, previous->getArrivalPos(), "sameStop", false), 1);
} else {
transportable->appendStage(new MSStageWalking(transportable->getID(), ConstMSEdgeVector({ myOrigin, myDestination }), myDestinationStop, myDuration, mySpeed, previous->getArrivalPos(), myArrivalPos, myDepartPosLat), -1);
transportable->appendStage(new MSStageWalking(transportable->getID(), ConstMSEdgeVector({ myOrigin, myDestination }), myDestinationStop, myDuration, mySpeed, previous->getArrivalPos(), myArrivalPos, myDepartPosLat), 1);
if (MSGlobals::gCheckRoutes) { // if not pedestrians will teleport
return "Empty route between " + getOriginDescription() + " and " + getDestinationDescription() + " for person '" + transportable->getID() + "'.";
}
Expand Down

0 comments on commit ac2e9e6

Please sign in to comment.