Skip to content

Commit

Permalink
Fix after API change
Browse files Browse the repository at this point in the history
Adapt to API changes in BehaviorTree.CPP between b3171a5e1 and
73e10fb8b2.

Signed-off-by: Gaël Écorchard <[email protected]>
  • Loading branch information
galou committed Oct 17, 2022
1 parent a0db79a commit 3658ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bt_editor/XML_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ bool VerifyXML(QDomDocument &doc,
error_messages.clear();
try {
std::string xml_text = doc.toString().toStdString();
std::unordered_map<std::string, BT::NodeType> registered_nodes;
std::set<std::string> registered_nodes;

for(const auto& str: registered_ID)
{
registered_nodes[ str.toStdString() ] = BT::NodeType::UNDEFINED;
registered_nodes.insert( str.toStdString() );
}

BT::VerifyXML(xml_text, registered_nodes); // may throw
Expand Down

0 comments on commit 3658ad4

Please sign in to comment.