diff --git a/src/cosim/scenario_parser.cpp b/src/cosim/scenario_parser.cpp index f1fafcb5..63064299 100644 --- a/src/cosim/scenario_parser.cpp +++ b/src/cosim/scenario_parser.cpp @@ -211,7 +211,7 @@ scenario::scenario parse_scenario( auto triggerTime = trigger.as(); auto time = to_time_point(triggerTime); - const auto& [index, simulator] = + const auto [index, simulator] = find_simulator(simulators, specified_or_default(event, "model", defaultOpts.model)); auto varName = specified_or_default(event, "variable", defaultOpts.variable);