Add more pointer pre-asserts

This commit is contained in:
Dmitry-Me 2014-12-12 10:38:48 +03:00
parent f0e8fac4ee
commit ed2a407a88
1 changed files with 2 additions and 0 deletions

View File

@ -663,6 +663,7 @@ void XMLNode::DeleteChild( XMLNode* node )
XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
{
TIXMLASSERT( addThis );
if ( addThis->_document != _document ) {
TIXMLASSERT( false );
return 0;
@ -696,6 +697,7 @@ XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )
{
TIXMLASSERT( addThis );
if ( addThis->_document != _document ) {
TIXMLASSERT( false );
return 0;