Skip to content

Commit

Permalink
fix issue #918 (introduced in #885)
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 9, 2025
1 parent 57c5db5 commit b2fc82c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xml_parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,13 @@ void VerifyXML(const std::string& xml_text,
for(auto child = node->FirstChildElement(); child != nullptr;
child = child->NextSiblingElement())
{
const std::string child_name = node->FirstChildElement()->Name();
const std::string child_name = child->Name();
const auto child_search = registered_nodes.find(child_name);
if(child_search == registered_nodes.end())
{
ThrowError(child->GetLineNum(),
std::string("Unknown node type: ") + child_name);
}
const auto child_type = child_search->second;
if(child_type == NodeType::CONTROL &&
((child_name == "ThreadedAction") ||
Expand Down

0 comments on commit b2fc82c

Please sign in to comment.