Reduce unnecessary comparisons

This commit is contained in:
Matt Nadareski
2025-01-07 14:33:55 -05:00
parent 67012eae1f
commit 9cdd108f74

View File

@@ -306,7 +306,7 @@ namespace SabreTools.DatItems
}
// If it's the first non-nodump item in the list, don't touch it
if (outfiles.Count == 0 || outfiles.Count == nodumpCount)
if (outfiles.Count == nodumpCount)
{
outfiles.Add(item);
continue;