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:
@@ -1286,7 +1286,7 @@ namespace SabreTools.DatFiles
|
||||
if (devItems == null)
|
||||
continue;
|
||||
|
||||
newDeviceReferences.IntersectWith(devItems
|
||||
newDeviceReferences.UnionWith(devItems
|
||||
.Where(i => i is DeviceRef)
|
||||
.Select(i => (i as DeviceRef)!.GetName()!));
|
||||
|
||||
@@ -1336,7 +1336,7 @@ namespace SabreTools.DatFiles
|
||||
if (slotItems == null)
|
||||
continue;
|
||||
|
||||
newSlotOptions.IntersectWith(slotItems
|
||||
newSlotOptions.UnionWith(slotItems
|
||||
.Where(i => i is Slot)
|
||||
.Where(s => (s as Slot)!.SlotOptionsSpecified)
|
||||
.SelectMany(s => (s as Slot)!.GetFieldValue<SlotOption[]?>(Models.Metadata.Slot.SlotOptionKey)!)
|
||||
|
||||
Reference in New Issue
Block a user