Fix possible ambiguity in migration code

This commit is contained in:
Zacharie Day 2020-09-02 19:36:58 -04:00 committed by Anna Clemens
parent 8fb69bc9ae
commit 65b2ab94fc
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

View File

@ -111,18 +111,18 @@ namespace HudSwap {
} }
if (this.JobLayouts.Count != 0) { if (this.JobLayouts.Count != 0) {
foreach (var jobLayout in JobLayouts) foreach (var jobLayout in this.JobLayouts)
this.HudConditionMatches.Add(new HudConditionMatch() { this.HudConditionMatches.Add(new HudConditionMatch() {
ClassJob = jobLayout.Key, ClassJob = jobLayout.Key,
Status = JobsCombatOnly ? Status.InCombat : default, Status = JobsCombatOnly ? Status.InCombat : default,
LayoutId = jobLayout.Value LayoutId = jobLayout.Value
}); });
JobLayouts.Clear(); this.JobLayouts.Clear();
} }
if (this.StatusLayouts.Count != 0) { if (this.StatusLayouts.Count != 0) {
foreach (var statusLayout in StatusLayouts) { foreach (var statusLayout in this.StatusLayouts) {
var match = new HudConditionMatch() {Status = statusLayout.Key, LayoutId = statusLayout.Value}; var match = new HudConditionMatch() {Status = statusLayout.Key, LayoutId = statusLayout.Value};
if (HighPriorityJobs) if (HighPriorityJobs)
this.HudConditionMatches.Add(match); this.HudConditionMatches.Add(match);
@ -130,7 +130,7 @@ namespace HudSwap {
this.HudConditionMatches.Insert(0, match); this.HudConditionMatches.Insert(0, match);
} }
StatusLayouts.Clear(); this.StatusLayouts.Clear();
} }
#pragma warning restore 618 #pragma warning restore 618
} }