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:
@@ -151,9 +151,9 @@ namespace SabreTools.DatFiles
|
||||
// Get the combined list of fields to remove
|
||||
var fieldNames = new HashSet<string>();
|
||||
if (itemFieldNames.ContainsKey(itemType))
|
||||
fieldNames.IntersectWith(itemFieldNames[itemType]);
|
||||
fieldNames.UnionWith(itemFieldNames[itemType]);
|
||||
if (itemFieldNames.ContainsKey("item"))
|
||||
fieldNames.IntersectWith(itemFieldNames["item"]);
|
||||
fieldNames.UnionWith(itemFieldNames["item"]);
|
||||
|
||||
// If the field specifically contains Name, set it separately
|
||||
if (fieldNames.Contains(Models.Metadata.Rom.NameKey))
|
||||
|
||||
Reference in New Issue
Block a user