Fix multiple DLCs when using cache

This commit is contained in:
Ismo Toijala 2015-04-23 19:43:54 +02:00
parent d97849818e
commit 9727b3f5c3

View File

@ -2989,7 +2989,10 @@ std::vector<gameDetails> Downloader::getGameDetailsFromJsonNode(Json::Value root
else if (nodeName == "languagepacks" && config.bLanguagePacks) else if (nodeName == "languagepacks" && config.bLanguagePacks)
game.languagepacks.push_back(fileDetails); game.languagepacks.push_back(fileDetails);
else if (nodeName == "dlcs" && conf.bDLC) else if (nodeName == "dlcs" && conf.bDLC)
game.dlcs = this->getGameDetailsFromJsonNode(fileDetailsNode, recursion_level + 1); {
std::vector<gameDetails> dlcs = this->getGameDetailsFromJsonNode(fileDetailsNode, recursion_level + 1);
game.dlcs.insert(game.dlcs.end(), dlcs.begin(), dlcs.end());
}
} }
} }
} }