diff --git a/src/Vfs.cc b/src/Vfs.cc index 88c3c3d7..4b228391 100644 --- a/src/Vfs.cc +++ b/src/Vfs.cc @@ -131,6 +131,8 @@ namespace zenkit { } VfsNode* VfsNode::create(VfsNode node) { + this->remove(node.name()); + auto& children = std::get(_m_data); auto it = children.insert(std::move(node)); return const_cast(&*it.first);