mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Missing means removed
This commit is contained in:
@@ -302,10 +302,10 @@ namespace SabreTools.DatFiles
|
|||||||
return false;
|
return false;
|
||||||
#endif
|
#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));
|
int removeIndex = list.FindIndex(i => i.Equals(value));
|
||||||
if (removeIndex < 0)
|
if (removeIndex < 0)
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
// Remove the statistics first
|
// Remove the statistics first
|
||||||
DatStatistics.RemoveItemStatistics(value);
|
DatStatistics.RemoveItemStatistics(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user