Skip to content

Commit

Permalink
Update assign this after parsing ScenarioObject
Browse files Browse the repository at this point in the history
  • Loading branch information
shouth committed Feb 14, 2024
1 parent 18f4ab6 commit ca19efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openscenario/openscenario_interpreter/src/syntax/entities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ inline namespace syntax
{
Entities::Entities(const pugi::xml_node & node, Scope & scope)
{
scope.global().entities = this;

traverse<0, unbounded>(node, "ScenarioObject", [&](auto && node) {
emplace(readAttribute<String>("name", node, scope), make<ScenarioObject>(node, scope));
});

scope.global().entities = this;

traverse<0, unbounded>(node, "EntitySelection", [&](auto && node) {
emplace(readAttribute<String>("name", node, scope), make<EntitySelection>(node, scope));
});
Expand Down

0 comments on commit ca19efc

Please sign in to comment.