summaryrefslogtreecommitdiff
path: root/modules/zip
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2022-11-01 11:37:02 -0600
committerBen Busby <contact@benbusby.com>2022-11-01 11:37:02 -0600
commit3b37f50e50090a8869f663d428b21e8b333a00e3 (patch)
treee308203b1d0223da2b5778580adede5a1c03dcca /modules/zip
parente6751549cf7247965d1744b8c464f5e901006f21 (diff)
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`).
Diffstat (limited to 'modules/zip')
-rw-r--r--modules/zip/zip_packer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/zip/zip_packer.cpp b/modules/zip/zip_packer.cpp
index c37fc0945e..e62700f191 100644
--- a/modules/zip/zip_packer.cpp
+++ b/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;