add game details only once to the list of games when doing update check

This commit is contained in:
Sude 2013-03-16 04:08:30 +02:00
parent 97273e8747
commit 25055a03c8

View File

@ -236,7 +236,10 @@ int Downloader::getGameDetails()
for (unsigned int j = 0; j < game.installers.size(); ++j)
{
if (game.installers[j].updated)
{
games.push_back(game);
break; // add the game only once
}
}
if (i >= static_cast<unsigned int>(gogAPI->user.notifications_games))
{ // Gone through all updated games. No need to go through the rest.