Skip to content

Commit

Permalink
Fix dangling reference in parse_scenario() (#761)
Browse files Browse the repository at this point in the history
Fixes #760.
  • Loading branch information
kyllingstad authored Jun 13, 2024
1 parent 2168a4c commit 1b5b849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cosim/scenario_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ scenario::scenario parse_scenario(
auto triggerTime = trigger.as<double>();
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);
Expand Down

0 comments on commit 1b5b849

Please sign in to comment.