From 25055a03c8b8eb1939058d8e12fa6ee215decab9 Mon Sep 17 00:00:00 2001 From: Sude Date: Sat, 16 Mar 2013 04:08:30 +0200 Subject: [PATCH] add game details only once to the list of games when doing update check --- src/downloader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/downloader.cpp b/src/downloader.cpp index 0ffdea0..5328da9 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -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(gogAPI->user.notifications_games)) { // Gone through all updated games. No need to go through the rest.