summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornova++ <3247833+novaplusplus@users.noreply.github.com>2022-04-12 23:51:32 -0400
committerNova <>2022-04-13 08:51:07 -0400
commit1a3cb23955dd874efc79c88538288806bbb8b457 (patch)
tree7d35a81012d54a660bf25df4ec77e70aa58afc4a
parent895f2a21f4beea6f4c89d33666bdf3b0925d6db7 (diff)
Fix "File must be opened" error with File.open()
-rw-r--r--core/core_bind.cpp1
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()) {