summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-13 17:42:41 +0200
committerGitHub <noreply@github.com>2022-04-13 17:42:41 +0200
commitd9991160545be05cebc9dea161eaf5b4d855e7db (patch)
treed16de995f6c7b3285a2c8b3b4431683452636a24 /core
parentd27f60f0e8d78059f8d075e16f0d242a7673bba0 (diff)
parent1a3cb23955dd874efc79c88538288806bbb8b457 (diff)
Merge pull request #60191 from novaplusplus/file-open-fix
Diffstat (limited to 'core')
-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()) {