diff --git a/src/microsim/transportables/MSPModel_JuPedSim.cpp b/src/microsim/transportables/MSPModel_JuPedSim.cpp index e47e51d9bdcb..593ca7f87fe4 100644 --- a/src/microsim/transportables/MSPModel_JuPedSim.cpp +++ b/src/microsim/transportables/MSPModel_JuPedSim.cpp @@ -306,7 +306,7 @@ MSPModel_JuPedSim::execute(SUMOTime time) { ConstMSEdgeVector route = stage->getEdges(); const int routeIndex = (int)(stage->getRouteStep() - stage->getRoute().begin()); ConstMSEdgeVector forwardRoute = ConstMSEdgeVector(route.begin() + routeIndex, route.end()); - const double bestDistance = std::numeric_limits::max(); + double bestDistance = std::numeric_limits::max(); MSLane* candidateLane = nullptr; double candidateLaneLongitudinalPosition = 0.0; int routeOffset = 0;