diff options
author | nova++ <3247833+novaplusplus@users.noreply.github.com> | 2022-04-12 23:51:32 -0400 |
---|---|---|
committer | Nova <> | 2022-04-13 08:51:07 -0400 |
commit | 1a3cb23955dd874efc79c88538288806bbb8b457 (patch) | |
tree | 7d35a81012d54a660bf25df4ec77e70aa58afc4a | |
parent | 895f2a21f4beea6f4c89d33666bdf3b0925d6db7 (diff) |
Fix "File must be opened" error with File.open()
-rw-r--r-- | core/core_bind.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 53c58084ac..892b74c26a 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1072,7 +1072,6 @@ Error File::open_compressed(const String &p_path, ModeFlags p_mode_flags, Compre } Error File::open(const String &p_path, ModeFlags p_mode_flags) { - close(); Error err; f = FileAccess::open(p_path, p_mode_flags, &err); if (f.is_valid()) { |