mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Have to special-case the root node.
This commit is contained in:
@@ -726,7 +726,9 @@ SHAMapTreeNode::pointer SHAMap::fetchNodeExternal(const SHAMapNode& id, const ui
|
||||
assert(false);
|
||||
return SHAMapTreeNode::pointer();
|
||||
}
|
||||
if (!mTNByID.insert(std::make_pair(id, ret)).second)
|
||||
if (id.isRoot())
|
||||
mTNByID[id] = ret;
|
||||
else if (!mTNByID.insert(std::make_pair(id, ret)).second)
|
||||
assert(false);
|
||||
trackNewNode(ret);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user