From 45bded01509ee07c34c004f8aa704aad00b1ea46 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Wed, 22 Nov 2017 20:25:34 +0100 Subject: [PATCH] fix zipmod avoid tripping asserts in VC --- source/src/zip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/zip.cpp b/source/src/zip.cpp index 21ab8561..072494ca 100644 --- a/source/src/zip.cpp +++ b/source/src/zip.cpp @@ -421,7 +421,7 @@ static void mountzip(ziparchive &arch, const char *mountdir, const char *stripdi #if defined(_DEBUG) && !defined(STANDALONE) clientlogf("mountzip: ignored file %s from zip %s", fname, arch.name); #endif - arch.files.remove(i--).~zipfile(); + DELSTRING(zf->fullname); } else path(zf->fullname); } @@ -436,7 +436,7 @@ static void rebuildzipfilehashtable() loopvj(arch->files) { zipfile *zf = &arch->files[j]; - zipfiles.access(zf->fullname, zf); + if(zf->fullname) zipfiles.access(zf->fullname, zf); } } }