diff --git a/src/downloader.cpp b/src/downloader.cpp index b19b971..be9fb25 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -3961,7 +3961,7 @@ void Downloader::galaxyInstallGameById(const std::string& product_id, int build_ std::vector items = this->galaxyGetDepotItemVectorFromJson(json, iGalaxyArch); // Remove blacklisted files from items vector - for (std::vector::iterator it = items.begin(); it != items.end(); it++) + for (std::vector::iterator it = items.begin(); it != items.end();) { std::string item_install_path = install_path + "/" + it->path; if (Globals::globalConfig.blacklist.isBlacklisted(item_install_path)) @@ -3970,6 +3970,10 @@ void Downloader::galaxyInstallGameById(const std::string& product_id, int build_ std::cout << "Skipping blacklisted file: " << item_install_path << std::endl; items.erase(it); } + else + { + ++it; + } } // Check for differences between previously installed build and new build