From 1110b9355e8d1fdee54dffb0020d46e86a85bc06 Mon Sep 17 00:00:00 2001 From: Drew Williams Date: Sat, 25 Nov 2023 19:12:39 -0500 Subject: [PATCH] change from ref to copy --- .../src/main/native/include/photon/simulation/VisionSystemSim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-lib/src/main/native/include/photon/simulation/VisionSystemSim.h b/photon-lib/src/main/native/include/photon/simulation/VisionSystemSim.h index 0a038f11b3..0cffb3481c 100644 --- a/photon-lib/src/main/native/include/photon/simulation/VisionSystemSim.h +++ b/photon-lib/src/main/native/include/photon/simulation/VisionSystemSim.h @@ -182,7 +182,7 @@ class VisionSystemSim { const std::vector& targets) { std::vector removedList; for (auto& entry : targetSets) { - for (auto& target : entry.second) { + for (auto target : entry.second) { auto it = std::find(targets.begin(), targets.end(), target); if (it != targets.end()) { removedList.emplace_back(target);