瀏覽代碼

[HTML5] Fix JS "tools" editor plugin.

Needed update after file/dir access refactoring.
Fabio Alessandrelli 3 年之前
父節點
當前提交
39d9a5540c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/javascript/api/javascript_tools_editor_plugin.cpp

+ 1 - 1
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;
 	}