When checking for next unaccepted msq quest, ignore quests without questpath

This commit is contained in:
Liza 2024-07-20 22:08:18 +02:00
parent fc1852139f
commit 7140577935
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View 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 // 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. // side quests until the end of time.
var msqQuest = GetMainScenarioQuest(questManager); 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; 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, // 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,