aboutsummaryrefslogtreecommitdiff
path: root/primedev/mods/autodownload/moddownloader.cpp
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-01-20 00:48:53 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-01-20 00:48:53 +0100
commitefff77f0941df9b6502f6c66a621c1c41a0d1e25 (patch)
tree21ca003de87a1842a041396fc2318e34932dcd00 /primedev/mods/autodownload/moddownloader.cpp
parent54532ae1ba82c106c2c510a9cbde7b6f1c3b7c1d (diff)
downloadNorthstarLauncher-efff77f0941df9b6502f6c66a621c1c41a0d1e25.tar.gz
NorthstarLauncher-efff77f0941df9b6502f6c66a621c1c41a0d1e25.zip
Fix compiler error
Diffstat (limited to 'primedev/mods/autodownload/moddownloader.cpp')
-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());