diff --git a/core/indigo-core/reaction/src/reaction_multistep_detector.cpp b/core/indigo-core/reaction/src/reaction_multistep_detector.cpp index b616f30a5b..0c1fe93f85 100644 --- a/core/indigo-core/reaction/src/reaction_multistep_detector.cpp +++ b/core/indigo-core/reaction/src/reaction_multistep_detector.cpp @@ -490,7 +490,7 @@ std::optional> ReactionMultistepDetector::findMaxSpecialZone } if (cont > 0.0f) { - auto& zone_it = zones.find(i); + auto zone_it = zones.find(i); if (zone_it != zones.end()) zone_it->second.insert(j); else