From 5d46f79f195053817b88356b5e1883e801bab067 Mon Sep 17 00:00:00 2001 From: TheKodeToad Date: Fri, 19 Sep 2025 00:25:26 +0100 Subject: [PATCH] Fix crash in Rule::apply Signed-off-by: TheKodeToad --- launcher/minecraft/Rule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/minecraft/Rule.cpp b/launcher/minecraft/Rule.cpp index 1a7c7c768..606776e8a 100644 --- a/launcher/minecraft/Rule.cpp +++ b/launcher/minecraft/Rule.cpp @@ -85,7 +85,7 @@ QJsonObject Rule::toJson() Rule::Action Rule::apply(const RuntimeContext& runtimeContext) { - if (!runtimeContext.classifierMatches(m_os->name)) + if (m_os.has_value() && !runtimeContext.classifierMatches(m_os->name)) return Defer; return m_action;