Missing means removed

This commit is contained in:
Matt Nadareski
2025-05-02 10:13:22 -04:00
parent 0b34163af3
commit 9fecdb366f

View File

@@ -302,10 +302,10 @@ namespace SabreTools.DatFiles
return false;
#endif
// If the value doesn't exist in the key, return
// If the value doesn't exist in the key, assume it has been removed
int removeIndex = list.FindIndex(i => i.Equals(value));
if (removeIndex < 0)
return false;
return true;
// Remove the statistics first
DatStatistics.RemoveItemStatistics(value);