summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-05-10 23:56:32 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-05-10 23:56:32 +0200
commit39d9a5540c770242388d02397da4f6a00b09ccbc (patch)
treeaa8425a116381fef905a45bec776acd5ee35dbf6 /platform
parente8110474b61d18de1c9e8e4e574d24c1c49a5ecf (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.cpp2
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;
}