diff --git a/Utilities/File.h b/Utilities/File.h index 3749069a4d..d97931bfd5 100644 --- a/Utilities/File.h +++ b/Utilities/File.h @@ -220,6 +220,7 @@ namespace fs template bool open(Args&&... args) { + m_file.reset(); *this = fs::file(std::forward(args)...); return m_file.operator bool(); }