From 1a3cb23955dd874efc79c88538288806bbb8b457 Mon Sep 17 00:00:00 2001 From: nova++ <3247833+novaplusplus@users.noreply.github.com> Date: Tue, 12 Apr 2022 23:51:32 -0400 Subject: Fix "File must be opened" error with File.open() --- core/core_bind.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'core') 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()) { -- cgit v1.2.3