aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2002-09-09 11:41:13 +0000
committerMax Horn2002-09-09 11:41:13 +0000
commitf277bb9fcd853dc1d647467a38bc49fc51d28543 (patch)
tree0d9b930a00f0c75e044b0481965b76974a53c568 /common
parent126dec89e673cd98d2ba65daeae5dd0a6e017245 (diff)
downloadscummvm-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.h2
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;