diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-24 17:18:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 17:18:12 +0200 |
commit | 2b1e6e303ed6b0e2ca408f2156b745e711c2bab7 (patch) | |
tree | 0ec902365a812d3cd8c449cd3983df48e10feb1a /drivers/unix/file_access_unix.cpp | |
parent | 96d7bc62af25b85b8b9cc091eeea1e7a784ba624 (diff) | |
parent | 32b43cfeb38dc83ba8024acec32bdfc706c86a46 (diff) |
Merge pull request #50786 from reduz/implement-resource-uids
Implement Resource UIDs
Diffstat (limited to 'drivers/unix/file_access_unix.cpp')
-rw-r--r-- | drivers/unix/file_access_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp index 6ea55219bb..f07c654bd6 100644 --- a/drivers/unix/file_access_unix.cpp +++ b/drivers/unix/file_access_unix.cpp @@ -111,7 +111,7 @@ Error FileAccessUnix::_open(const String &p_path, int p_mode_flags) { } } - if (is_backup_save_enabled() && (p_mode_flags & WRITE) && !(p_mode_flags & READ)) { + if (is_backup_save_enabled() && (p_mode_flags == WRITE)) { save_path = path; path = path + ".tmp"; } |