Skip to content

Commit

Permalink
order quests to get the correct pages
Browse files Browse the repository at this point in the history
  • Loading branch information
myangelkamikaze committed Jul 18, 2020
1 parent ac15201 commit 832fa97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ElectronicObserver/Window/FormQuest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ void Updated()

QuestView.Rows.Clear();

foreach ((QuestData q, int questIndex) in KCDatabase.Instance.Quest.Quests.Values.Select((q, i) => (q, i)))
var indexedQuests = KCDatabase.Instance.Quest.Quests.Values
.OrderBy(q => q.ID)
.Select((q, i) => (q, i));

foreach ((QuestData q, int questIndex) in indexedQuests)
{

if (MenuMain_ShowRunningOnly.Checked && !(q.State == 2 || q.State == 3))
Expand Down

0 comments on commit 832fa97

Please sign in to comment.