commit | 8a763619ac5fe8d881c19c0b973ff7d24b1570fe | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Fri Jun 16 09:30:16 2017 -0700 |
committer | Lee Thomason <leethomason@gmail.com> | Fri Jun 16 09:30:16 2017 -0700 |
tree | a4e68728aacd99c1f3408051e079fa3d6112f33a | |
parent | bc527554e8ea847d377fbcdfe78bfeeafff7b97a [diff] [blame] |
fix incorrect factoring
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 772d2ae..603be82 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -809,12 +809,12 @@ if ( child->_prev ) { child->_prev->_next = child->_next; - child->_prev = 0; } if ( child->_next ) { child->_next->_prev = child->_prev; - child->_next = 0; } + child->_next = 0; + child->_prev = 0; child->_parent = 0; }