mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Fixed segfault when downloading non-dlc patches
This commit is contained in:
parent
50cc5a2565
commit
da80d9c4c9
@ -700,8 +700,8 @@ void Downloader::download()
|
||||
{
|
||||
std::string XML;
|
||||
if (config.bRemoteXML)
|
||||
XML = gogAPI->getXML(games[i].dlcs[j].gamename, games[i].patches[j].id);
|
||||
if (!games[i].dlcs[j].patches[j].name.empty())
|
||||
XML = gogAPI->getXML(games[i].gamename, games[i].patches[j].id);
|
||||
if (!games[i].patches[j].name.empty())
|
||||
std::cout << "Dowloading: " << games[i].patches[j].name << std::endl;
|
||||
CURLcode result = this->downloadFile(url, filepath, XML, games[i].gamename);
|
||||
std::cout << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user