1
0
forked from liza/Questionable

Check if the next msq quest can even be accepted

This commit is contained in:
Liza 2024-08-02 09:59:40 +02:00
parent d86afbf982
commit 634ac804af
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -151,6 +151,7 @@ internal sealed unsafe class GameFunctions
var msqQuest = GetMainScenarioQuest(questManager); var msqQuest = GetMainScenarioQuest(questManager);
if (msqQuest.CurrentQuest != 0 && if (msqQuest.CurrentQuest != 0 &&
_questRegistry.IsKnownQuest(msqQuest.CurrentQuest) && _questRegistry.IsKnownQuest(msqQuest.CurrentQuest) &&
IsReadyToAcceptQuest(msqQuest.CurrentQuest) &&
!questManager->IsQuestAccepted(msqQuest.CurrentQuest)) !questManager->IsQuestAccepted(msqQuest.CurrentQuest))
return msqQuest; return msqQuest;