Don't try to list extras if there aren't any

This commit is contained in:
Sude 2013-05-23 22:01:57 +03:00
parent 5b2c4ae00a
commit f3ba069f50

View File

@ -286,7 +286,7 @@ void Downloader::listGames()
}
}
// List extras
if (!config.bNoExtras && !config.bUpdateCheck)
if (!config.bNoExtras && !config.bUpdateCheck && !games[i].extras.empty())
{
std::cout << "extras: " << std::endl;
for (unsigned int j = 0; j < games[i].extras.size(); ++j)