From af6255604ebb74e6e2a42b6b3ad9eadbc38c58c7 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 11 Sep 2018 14:36:39 +0200 Subject: [PATCH] Fix #4556 --- src/microsim/devices/MSDevice_SSM.cpp | 2 +- src/microsim/devices/MSDevice_SSM.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microsim/devices/MSDevice_SSM.cpp b/src/microsim/devices/MSDevice_SSM.cpp index 2f54dfdb074..fccea606f11 100644 --- a/src/microsim/devices/MSDevice_SSM.cpp +++ b/src/microsim/devices/MSDevice_SSM.cpp @@ -2530,7 +2530,7 @@ MSDevice_SSM::findSurroundingVehicles(const MSVehicle& veh, double range, FoeInf } void -MSDevice_SSM::getUpstreamVehicles(const MSEdge* edge, double pos, double range, double egoDistToConflictLane, const MSLane* const egoConflictLane, FoeInfoMap& foeCollector, std::set seenJunctions) { +MSDevice_SSM::getUpstreamVehicles(const MSEdge* edge, double pos, double range, double egoDistToConflictLane, const MSLane* const egoConflictLane, FoeInfoMap& foeCollector, std::set& seenJunctions) { #ifdef DEBUG_SSM_SURROUNDING std::cout << SIMTIME << " getUpstreamVehicles() for edge '" << edge->getID() << "'" << " pos = " << pos << " range = " << range diff --git a/src/microsim/devices/MSDevice_SSM.h b/src/microsim/devices/MSDevice_SSM.h index 0ef69bcca02..05ed8641710 100644 --- a/src/microsim/devices/MSDevice_SSM.h +++ b/src/microsim/devices/MSDevice_SSM.h @@ -351,7 +351,7 @@ class MSDevice_SSM : public MSDevice { /** @brief Collects all vehicles within range 'range' upstream of the position 'pos' on the edge 'edge' into foeCollector */ - static void getUpstreamVehicles(const MSEdge* edge, double pos, double range, double egoDistToConflictLane, const MSLane* const egoConflictLane, FoeInfoMap& foeCollector, std::set seenJunctions); + static void getUpstreamVehicles(const MSEdge* edge, double pos, double range, double egoDistToConflictLane, const MSLane* const egoConflictLane, FoeInfoMap& foeCollector, std::set& seenJunctions); /** @brief Collects all vehicles on the junction into foeCollector */