diff options
author | Max Horn | 2002-09-09 11:41:13 +0000 |
---|---|---|
committer | Max Horn | 2002-09-09 11:41:13 +0000 |
commit | f277bb9fcd853dc1d647467a38bc49fc51d28543 (patch) | |
tree | 0d9b930a00f0c75e044b0481965b76974a53c568 /common | |
parent | 126dec89e673cd98d2ba65daeae5dd0a6e017245 (diff) | |
download | scummvm-rg350-f277bb9fcd853dc1d647467a38bc49fc51d28543.tar.gz scummvm-rg350-f277bb9fcd853dc1d647467a38bc49fc51d28543.tar.bz2 scummvm-rg350-f277bb9fcd853dc1d647467a38bc49fc51d28543.zip |
fixed bug in remove() (could cause crashes)
svn-id: r4917
Diffstat (limited to 'common')
-rw-r--r-- | common/map.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |