From 97273e874752e44a595d6fd09bad6a9505a2c7c4 Mon Sep 17 00:00:00 2001 From: Sude Date: Sat, 16 Mar 2013 03:47:38 +0200 Subject: [PATCH] Fixed a typo that caused update flag to be set true for all installers --- src/api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.cpp b/src/api.cpp index 36fb795..8df5394 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -321,7 +321,7 @@ gameDetails API::getGameDetails(const std::string& game_name, const unsigned int Json::Value installer = installers[i][index]; game.installers.push_back( - gameFile( installer["#updated"].isBool() ? installer["id"].asBool() : false, + gameFile( installer["#updated"].isBool() ? installer["#updated"].asBool() : false, installer["id"].isInt() ? std::to_string(installer["id"].asInt()) : installer["id"].asString(), std::string(), // empty string because installer doesn't have "name" installer["link"].asString(),