From 59dda01f0048cb5d901e1b620d9dd57126bd7a8b Mon Sep 17 00:00:00 2001 From: Epicpkmn11 Date: Mon, 27 Apr 2020 23:37:22 -0500 Subject: [PATCH] Only increase filesExtracted once per file... --- source/utils/extract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/extract.cpp b/source/utils/extract.cpp index 0bf3a39..4936f5b 100644 --- a/source/utils/extract.cpp +++ b/source/utils/extract.cpp @@ -91,8 +91,8 @@ Result extractArchive(std::string archivePath, std::string wantedFile, std::stri fwrite(buf, 1, size, file); sizeLeft -= size; writeOffset += size; - filesExtracted++; } + filesExtracted++; fclose(file); delete[] buf; }