diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 8a53930..5358115 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -464,6 +464,9 @@ inline void Node256::copyChildrenAndKeyFrom(const Node48 &other) { inline void Node256::copyChildrenAndKeyFrom(const Node256 &other) { memcpy((char *)this + kNodeCopyBegin, (char *)&other + kNodeCopyBegin, kNodeCopySize); + for (int i = 0; i < 256; ++i) { + children[i].child = nullptr; + } bitSet = other.bitSet; bitSet.forEachInRange( [&](int c) {