Fixed windows build

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-06-24 13:24:40 +03:00
parent cd1e8dc8cc
commit 8939096db6
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -197,7 +197,7 @@ void FlamePackExportTask::makeApiRequest()
}
setStatus(tr("Parsing API response from CurseForge for '%1'...").arg((*mod)->name()));
if (Json::ensureBoolean(file_obj, "isAvailable", false))
if (Json::ensureBoolean(file_obj, "isAvailable", false, "isAvailable"))
resolvedFiles.insert(
mod.value()->fileinfo().absoluteFilePath(),
{ Json::requireInteger(file_obj, "modId"), Json::requireInteger(file_obj, "id"), mod.value()->enabled() });