util/RedBlackTree: fix lost "right" child while swapping with successor
Fixes a tree corruption bug that led to assertion failures.
This commit is contained in:
parent
88475f2e2b
commit
b3a31b69ee
@ -289,6 +289,7 @@ public:
|
||||
assert(successor.parent != this);
|
||||
|
||||
successor.parent->SetChild(Direction::LEFT, *this);
|
||||
successor.SetChild(Direction::RIGHT, &right);
|
||||
}
|
||||
|
||||
p.SetChild(direction_in_parent, successor);
|
||||
|
Loading…
Reference in New Issue
Block a user