diff options
Diffstat (limited to 'core/core_bind.cpp')
| -rw-r--r-- | core/core_bind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 7d8ec6064d..53c58084ac 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1088,7 +1088,7 @@ void File::flush() { void File::close() { ERR_FAIL_COND_MSG(f.is_null(), "File must be opened."); - f = Ref<FileAccess>(); + f.unref(); } bool File::is_open() const { |
