浏览代码

Remove `zf != NULL` check from `ZIPPacker::start_file`

This check was removed because it introduces a bug which prevents
ZIPPacker from actually adding any files, since it must be opened before
adding any files (and therefore shouldn't be NULL at the start of
`start_file`).
Ben Busby 2 年之前
父节点
当前提交
3b37f50e50
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      modules/zip/zip_packer.cpp

+ 0 - 1
modules/zip/zip_packer.cpp

@@ -50,7 +50,6 @@ Error ZIPPacker::close() {
 }
 
 Error ZIPPacker::start_file(String p_path) {
-	ERR_FAIL_COND_V_MSG(zf != NULL, FAILED, "ZIPPacker is already in use.");
 	ERR_FAIL_COND_V_MSG(fa.is_null(), FAILED, "ZIPPacker must be opened before use.");
 
 	zip_fileinfo zipfi;