From 9727b3f5c3c5643c86ccba4e8c6996348e30fca3 Mon Sep 17 00:00:00 2001 From: Ismo Toijala Date: Thu, 23 Apr 2015 19:43:54 +0200 Subject: [PATCH] Fix multiple DLCs when using cache --- src/downloader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); + } } } }