mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
fixed bug in remove() (could cause crashes)
svn-id: r4917
This commit is contained in:
parent
126dec89e6
commit
f277bb9fcd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user