aboutsummaryrefslogtreecommitdiff
path: root/core/set.h
diff options
context:
space:
mode:
authorHein-Pieter van Braam2017-09-06 23:50:18 +0200
committerHein-Pieter van Braam2017-09-08 14:59:15 +0200
commit8230bf0a2f39f0849b670d26067207c45edcca1a (patch)
tree42f598d11fab7f1449d0cace0f991f546bd72e72 /core/set.h
parentd1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff)
downloadgodot-8230bf0a2f39f0849b670d26067207c45edcca1a.tar.gz
godot-8230bf0a2f39f0849b670d26067207c45edcca1a.tar.zst
godot-8230bf0a2f39f0849b670d26067207c45edcca1a.zip
Diffstat (limited to 'core/set.h')
-rw-r--r--core/set.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/set.h b/core/set.h
index 317e18086..f68d78cea 100644
--- a/core/set.h
+++ b/core/set.h
@@ -438,8 +438,9 @@ private:
if (!rp)
rp = _data._nil;
Element *node = (rp->left == _data._nil) ? rp->right : rp->left;
+ node->parent = rp->parent;
- if (_data._root == (node->parent = rp->parent)) {
+ if (_data._root == node->parent) {
_data._root->left = node;
} else {
if (rp == rp->parent->left) {