Skip to content

Commit

Permalink
Adapt to API changes in BehaviorTree
Browse files Browse the repository at this point in the history
The change was introduced in 474f33b.
  • Loading branch information
galou committed Sep 22, 2022
1 parent eb0a1f2 commit a0db79a
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::set<std::string> registered_nodes;
std::unordered_map<std::string, BT::NodeType> registered_nodes;

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

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

0 comments on commit a0db79a

Please sign in to comment.