diff --git a/ConflictSet.cpp b/ConflictSet.cpp index c4f0a98..0f56d70 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -565,7 +565,7 @@ void eraseChild(Node *self, uint8_t index, NodeAllocators *allocators) { assert(lastChildrenIndex >= 0); if (toRemoveChildrenIndex != lastChildrenIndex) { self48->children[toRemoveChildrenIndex] = - std::exchange(self48->children[lastChildrenIndex], nullptr); + self48->children[lastChildrenIndex]; self48->index[self48->children[toRemoveChildrenIndex]->parentsIndex] = toRemoveChildrenIndex; }