From f277bb9fcd853dc1d647467a38bc49fc51d28543 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 9 Sep 2002 11:41:13 +0000 Subject: fixed bug in remove() (could cause crashes) svn-id: r4917 --- common/map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/map.h b/common/map.h index 5fd655093c..3a7c0786bd 100644 --- a/common/map.h +++ b/common/map.h @@ -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; -- cgit v1.2.3