mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
IntersectWith should be UnionWith
This commit is contained in:
@@ -1716,7 +1716,7 @@ namespace SabreTools.DatFiles
|
||||
continue;
|
||||
|
||||
// Add to the list of new device reference names
|
||||
newDeviceReferences.IntersectWith(devItems
|
||||
newDeviceReferences.UnionWith(devItems
|
||||
.Where(i => i.Item2 is DeviceRef)
|
||||
.Select(i => (i.Item2 as DeviceRef)!.GetName()!));
|
||||
|
||||
@@ -1771,7 +1771,7 @@ namespace SabreTools.DatFiles
|
||||
continue;
|
||||
|
||||
// Add to the list of new slot option names
|
||||
newSlotOptions.IntersectWith(slotItems
|
||||
newSlotOptions.UnionWith(slotItems
|
||||
.Where(i => i.Item2 is Slot)
|
||||
.Where(s => (s.Item2 as Slot)!.SlotOptionsSpecified)
|
||||
.SelectMany(s => (s.Item2 as Slot)!.GetFieldValue<SlotOption[]?>(Models.Metadata.Slot.SlotOptionKey)!)
|
||||
|
||||
Reference in New Issue
Block a user