Merge pull request #60191 from novaplusplus/file-open-fix

This commit is contained in:
Rémi Verschelde 2022-04-13 17:42:41 +02:00 committed by GitHub
commit d999116054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {