diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-05-10 23:56:32 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-05-10 23:56:32 +0200 |
commit | 39d9a5540c770242388d02397da4f6a00b09ccbc (patch) | |
tree | aa8425a116381fef905a45bec776acd5ee35dbf6 /platform | |
parent | e8110474b61d18de1c9e8e4e574d24c1c49a5ecf (diff) |
[HTML5] Fix JS "tools" editor plugin.
Needed update after file/dir access refactoring.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/javascript/api/javascript_tools_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/api/javascript_tools_editor_plugin.cpp b/platform/javascript/api/javascript_tools_editor_plugin.cpp index 31ce71127d..198af61eff 100644 --- a/platform/javascript/api/javascript_tools_editor_plugin.cpp +++ b/platform/javascript/api/javascript_tools_editor_plugin.cpp @@ -122,7 +122,7 @@ void JavaScriptToolsEditorPlugin::_zip_file(String p_path, String p_base_path, z void JavaScriptToolsEditorPlugin::_zip_recursive(String p_path, String p_base_path, zipFile p_zip) { Ref<DirAccess> dir = DirAccess::open(p_path); - if (!dir) { + if (dir.is_null()) { WARN_PRINT("Unable to open directory for zipping: " + p_path); return; } |