Avoid duplicate quests in priority window

This commit is contained in:
Liza 2024-09-20 19:43:19 +02:00
parent 2aa14db916
commit d4a9bb5f9b
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -112,7 +112,7 @@ internal sealed class PriorityWindow : LWindow
foreach (var quest in foundQuests) foreach (var quest in foundQuests)
{ {
if (quest.Info.IsMainScenarioQuest || _questController.ManualPriorityQuests.Contains(quest)) if (quest.Info.IsMainScenarioQuest || _questController.ManualPriorityQuests.Any(x => x.Id == quest.Id))
continue; continue;
bool addThis = ImGui.Selectable(quest.Info.Name); bool addThis = ImGui.Selectable(quest.Info.Name);