From efff77f0941df9b6502f6c66a621c1c41a0d1e25 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sat, 20 Jan 2024 00:48:53 +0100 Subject: Fix compiler error --- primedev/mods/autodownload/moddownloader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/primedev/mods/autodownload/moddownloader.cpp b/primedev/mods/autodownload/moddownloader.cpp index 5d3e9254..9d79beaf 100644 --- a/primedev/mods/autodownload/moddownloader.cpp +++ b/primedev/mods/autodownload/moddownloader.cpp @@ -60,6 +60,7 @@ void ModDownloader::FetchModsListFromAPI() CURLcode result; CURL* easyhandle; rapidjson::Document verifiedModsJson; + rapidjson::Value verifiedModsJsonThunderstore; std::string url = modsListUrl; curl_global_init(CURL_GLOBAL_ALL); @@ -91,7 +92,7 @@ void ModDownloader::FetchModsListFromAPI() assert(verifiedModsJson.HasMember("thunderstore")); // Check if the "thunderstore" key exists - auto verifiedModsJsonThunderstore = verifiedModsJson["thunderstore"]; + verifiedModsJsonThunderstore = verifiedModsJson["thunderstore"]; assert(verifiedModsJsonThunderstore->value.IsObject()); -- cgit v1.2.3