Skip to content

Commit

Permalink
fixing typo refs #13384
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jun 7, 2023
1 parent 5f649e6 commit 77be27e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libsumo/Vehicle.cpp
Expand Up @@ -1519,8 +1519,10 @@ Vehicle::add(const std::string& vehID,
if (!vehicleType) {
throw TraCIException("Invalid type '" + typeID + "' for vehicle '" + vehID + "'.");
}
vehicleParams.vtypeid = vehID;
vehicleParams.parametersSet |= VEHPARS_VTYPE_SET;
if (typeID != "DEFAULT_VEHTYPE") {
vehicleParams.vtypeid = typeID;
vehicleParams.parametersSet |= VEHPARS_VTYPE_SET;
}
ConstMSRoutePtr route = MSRoute::dictionary(routeID);
if (!route) {
if (routeID == "") {
Expand Down

0 comments on commit 77be27e

Please sign in to comment.