From 063d313b7fdd6bf7d93372324111d501e0cf8a5d Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Mon, 9 Mar 2026 18:04:02 -0700 Subject: [PATCH] fix merge --- tinyxml2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index a0a0b235..56faecbd 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2348,11 +2348,10 @@ static FILE* callfopen( const char* filepath, const char* mode ) } void XMLDocument::DeleteNode( XMLNode* node ) { - TIXMLASSERT( node ); - TIXMLASSERT(node->_document == this ); if(node == 0) { return; // check for null pointer } + TIXMLASSERT(node->_document == this); if (node->_parent) { node->_parent->DeleteChild( node ); }