From 6258fd49df57ad592f4c83639ea1221b594a8e09 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 17 Jan 2018 13:06:21 -0800 Subject: [PATCH] [Filter] Fix not-game-name flag (fixes #4) --- SabreTools.Library/DatFiles/Filter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SabreTools.Library/DatFiles/Filter.cs b/SabreTools.Library/DatFiles/Filter.cs index 65886ade..260bf346 100644 --- a/SabreTools.Library/DatFiles/Filter.cs +++ b/SabreTools.Library/DatFiles/Filter.cs @@ -639,13 +639,13 @@ namespace SabreTools.Library.DatFiles } if (_notGameNames.Count > 0) { - bool found = FindValueInList(_gameNames, item.MachineName); + bool found = FindValueInList(_notGameNames, item.MachineName); // If we are checking CloneOf and RomOf, add them in as well if (_includeOfInGame) { - found |= FindValueInList(_gameNames, item.CloneOf); - found |= FindValueInList(_gameNames, item.RomOf); + found |= FindValueInList(_notGameNames, item.CloneOf); + found |= FindValueInList(_notGameNames, item.RomOf); } // If the game name was found in the list, return false