summaryrefslogtreecommitdiff
path: root/core/io/file_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/file_access.h')
-rw-r--r--core/io/file_access.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/file_access.h b/core/io/file_access.h
index 5413665440..a6cb5d9fc6 100644
--- a/core/io/file_access.h
+++ b/core/io/file_access.h
@@ -188,6 +188,10 @@ struct FileAccessRef {
operator FileAccess *() { return f; }
FileAccessRef(FileAccess *fa) { f = fa; }
+ FileAccessRef(FileAccessRef &&other) {
+ f = other.f;
+ other.f = nullptr;
+ }
~FileAccessRef() {
if (f) {
memdelete(f);