fix zipmod

avoid tripping asserts in VC
This commit is contained in:
ac-stef
2017-11-22 20:25:34 +01:00
parent 7cc454c11a
commit 45bded0150
+2 -2
View File
@@ -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);
}
}
}