diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 2fd4735..db5e24b 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1732,9 +1732,7 @@ void addWriteRange(Node *&root, int64_t oldestVersion, n = child; } - Node **useAsRoot = n->parent == nullptr - ? &root - : &getChildExists(n->parent, n->parentsIndex); + Node **useAsRoot = &getInTree(n, impl); int consumed = lcp - remaining.size();