Skip to content

Commit

Permalink
fixing depart lane #1922
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 29, 2024
1 parent a4a32bb commit 8569179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/microsim/devices/MSDevice_FCDReplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ MSDevice_FCDReplay::FCDHandler::addTrafficObjects() {
if (!MSRoute::dictionary(dummyRouteID, route)) {
throw ProcessError("Could not add route '" + dummyRouteID + "'.");
}
params->departLaneProcedure = DepartLaneDefinition::GIVEN;
params->departLane = SUMOXMLDefinitions::getIndexFromLane(std::get<1>(t.front()));
SUMOVehicle* vehicle = MSNet::getInstance()->getVehicleControl().buildVehicle(params, route, vehicleType, false);
if (!MSNet::getInstance()->getVehicleControl().addVehicle(id, vehicle)) {
Expand Down

0 comments on commit 8569179

Please sign in to comment.