Skip to content

Commit

Permalink
Port fix for corruption on xml comment
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Sep 19, 2024
1 parent c2e7a5d commit 3bc559e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/global/serialization/xmlstreamreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static std::pair<XMLNode*, XmlStreamReader::TokenType> resolveNode(XMLNode* curr
}

XMLNode* sibling = currentNode->NextSibling();
if (!sibling || sibling->ToElement() || sibling->ToText()) {
if (!sibling || sibling->ToElement() || sibling->ToText() || sibling->ToComment()) {
return { currentNode, XmlStreamReader::TokenType::EndElement };
}
}
Expand Down

0 comments on commit 3bc559e

Please sign in to comment.