From 1378676bbcbb3128ee3ddcf75a301da0c4ca4d85 Mon Sep 17 00:00:00 2001 From: William JCM Date: Mon, 3 Jan 2022 12:46:13 +0100 Subject: [PATCH] SaveTool: fix old code. --- src/SaveTool/SaveTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SaveTool/SaveTool.cpp b/src/SaveTool/SaveTool.cpp index c56e96d..c9276cc 100644 --- a/src/SaveTool/SaveTool.cpp +++ b/src/SaveTool/SaveTool.cpp @@ -418,8 +418,8 @@ void SaveTool::updateCheckEvent(SDL_Event& event) { std::chrono::milliseconds{5000}); _updateAvailable = true; _latestVersion = latest_ver; - _releaseLink = response[0]["html_url"]; - _downloadLink = response[0]["assets"][0]["browser_download_url"]; + _releaseLink = release["html_url"]; + _downloadLink = release["assets"][0]["browser_download_url"]; } else if(latest_ver == current_ver || (current_ver > latest_ver && Utility::String::endsWith(SAVETOOL_VERSION, "-pre"))) { _queue.addToast(Toast::Type::Success, "The application is already up to date.");