diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 79a8fdf..1589eae 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3981,9 +3981,9 @@ namespace pugi while (cur && cur != *this); } - if (!walker.end(*this)) return false; - - return true; + assert(walker._depth == -1); + + return walker.end(*this); } unsigned int xml_node::document_order() const