Only increase filesExtracted once per file...

This commit is contained in:
Epicpkmn11
2020-04-27 23:37:22 -05:00
parent c84ef3dca5
commit 59dda01f00
+1 -1
View File
@@ -91,8 +91,8 @@ Result extractArchive(std::string archivePath, std::string wantedFile, std::stri
fwrite(buf, 1, size, file); fwrite(buf, 1, size, file);
sizeLeft -= size; sizeLeft -= size;
writeOffset += size; writeOffset += size;
filesExtracted++;
} }
filesExtracted++;
fclose(file); fclose(file);
delete[] buf; delete[] buf;
} }