From 0dfb6c99e1bc30ee2ebec6efc91f6b3453bcedcd Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Wed, 25 Feb 2026 22:17:52 +0500 Subject: [PATCH] fix(ModrinthCheckUpdate): guard list access Signed-off-by: Octol1ttle --- launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp index 8d47bada7..72769d231 100644 --- a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp +++ b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp @@ -151,7 +151,7 @@ void ModrinthCheckUpdate::checkVersionsResponse(QByteArray* response, std::optio // Sometimes a version may have multiple files, one with "forge" and one with "fabric", // so we may want to filter it QString loader_filter; - if (loader.has_value()) { + if (loader.has_value() && loader != 0) { loader_filter = ModPlatform::getModLoaderAsString(ModPlatform::modLoaderTypesToList(*loader).first()); }