fixed bug in remove() (could cause crashes)

svn-id: r4917
This commit is contained in:
Max Horn 2002-09-09 11:41:13 +00:00
parent 126dec89e6
commit f277bb9fcd

View File

@ -156,7 +156,7 @@ public:
// Replace this node with node 'rep'
if (rep)
rep->_parent = parent;
if (!parent) // Root node?
if (parent == _header) // Root node?
_root = rep;
else if (parent->_left == node)
parent->_left = rep;