From f948fd82ab0cb145597d5296643bf334b6e010e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 16 May 2022 00:39:13 +0200 Subject: [PATCH] NOISSUE fix build on Windows --- launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp index 96b7d147..3c436d27 100644 --- a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp +++ b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp @@ -138,7 +138,7 @@ void Modrinth::ListModel::searchRequestFinished() QVector newList; QJsonArray hits; - int total_hits; + int total_hits = 0; try { @@ -149,6 +149,7 @@ void Modrinth::ListModel::searchRequestFinished() catch(const JSONValidationError &e) { qWarning() << "Error while parsing response from Modrinth: " << e.cause(); + return; } for (auto packRaw : hits)