diff --git a/src/downloader.cpp b/src/downloader.cpp index dd499bc..40a6c33 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2989,7 +2989,10 @@ std::vector Downloader::getGameDetailsFromJsonNode(Json::Value root else if (nodeName == "languagepacks" && config.bLanguagePacks) game.languagepacks.push_back(fileDetails); else if (nodeName == "dlcs" && conf.bDLC) - game.dlcs = this->getGameDetailsFromJsonNode(fileDetailsNode, recursion_level + 1); + { + std::vector dlcs = this->getGameDetailsFromJsonNode(fileDetailsNode, recursion_level + 1); + game.dlcs.insert(game.dlcs.end(), dlcs.begin(), dlcs.end()); + } } } }