When checking for next unaccepted msq quest, ignore quests without questpath
authorLiza Carvelli <liza@carvel.li>
Sat, 20 Jul 2024 20:08:18 +0000 (22:08 +0200)
committerLiza Carvelli <liza@carvel.li>
Sat, 20 Jul 2024 20:08:18 +0000 (22:08 +0200)
Questionable/GameFunctions.cs

index f12e1bd79b45cb8d99ee6eb05e2f5a6c4d4cf91f..b2951732076141c5ca5a474d2764cd5a34dfd1e4 100644 (file)
@@ -147,7 +147,9 @@ internal sealed unsafe class GameFunctions
             // always prioritize accepting MSQ quests, to make sure we don't turn in one MSQ quest and then go off to do
             // side quests until the end of time.
             var msqQuest = GetMainScenarioQuest(questManager);
-            if (msqQuest.CurrentQuest != 0 && !questManager->IsQuestAccepted(msqQuest.CurrentQuest))
+            if (msqQuest.CurrentQuest != 0 &&
+                _questRegistry.IsKnownQuest(msqQuest.CurrentQuest) &&
+                !questManager->IsQuestAccepted(msqQuest.CurrentQuest))
                 return msqQuest;
 
             // Use the quests in the same order as they're shown in the to-do list, e.g. if the MSQ is the first item,