diff options
| author | Hein-Pieter van Braam | 2017-09-06 23:50:18 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-09-08 14:59:15 +0200 |
| commit | 8230bf0a2f39f0849b670d26067207c45edcca1a (patch) | |
| tree | 42f598d11fab7f1449d0cace0f991f546bd72e72 /core/map.h | |
| parent | d1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff) | |
| download | godot-8230bf0a2f39f0849b670d26067207c45edcca1a.tar.gz godot-8230bf0a2f39f0849b670d26067207c45edcca1a.tar.zst godot-8230bf0a2f39f0849b670d26067207c45edcca1a.zip | |
Diffstat (limited to 'core/map.h')
| -rw-r--r-- | core/map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/map.h b/core/map.h index 75a38a344..a37d898a9 100644 --- a/core/map.h +++ b/core/map.h @@ -453,8 +453,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) { |
