diff --git a/common/src/command_processor.cpp b/common/src/command_processor.cpp index e77c02b..6ad3872 100644 --- a/common/src/command_processor.cpp +++ b/common/src/command_processor.cpp @@ -109,13 +109,10 @@ std::string CommandProcessor::_handle_vfs_action(sol::table action) { /* Copy the directory. */ vfs_node* private_copy = copy_vfs_node(_current_dir, grand_parent); - /* Link the new private copy into the VFS tree. */ grand_parent->children[_current_dir->name] = private_copy; - /* Update our own state to point to the new writable dir. */ _current_dir = private_copy; - /* Find the target node again within our new private copy. */ target_node = _current_dir->children[path]; }