More pointers pre-asserts

This commit is contained in:
Dmitry-Me
2014-12-09 12:59:31 +03:00
parent e6328b81f7
commit abb2d046d0
2 changed files with 31 additions and 7 deletions

View File

@@ -1666,6 +1666,8 @@ public:
It will be unlinked from the DOM.
*/
void DeleteNode( XMLNode* node ) {
TIXMLASSERT( node );
TIXMLASSERT( node->_parent );
node->_parent->DeleteChild( node );
}