aboutsummaryrefslogtreecommitdiff
path: root/primedev
diff options
context:
space:
mode:
Diffstat (limited to 'primedev')
-rw-r--r--primedev/mods/autodownload/moddownloader.cpp3
1 files changed, 2 insertions, 1 deletions
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());