summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-08 18:13:13 -0400
committerGitHub <noreply@github.com>2022-10-08 18:13:13 -0400
commit0cce2d701d9dd8b6d10d21047e56326dfa602426 (patch)
treed63bd30a844cd6c387f2a7a367c0c724a9cc0d00 /src/SMAPI
parent2e918823ba7771e45d78a8efb68aa5ea381e8e78 (diff)
parentf0e52061e34f3a397dbe1120590d062feb1be0ef (diff)
downloadSMAPI-0cce2d701d9dd8b6d10d21047e56326dfa602426.tar.gz
SMAPI-0cce2d701d9dd8b6d10d21047e56326dfa602426.tar.bz2
SMAPI-0cce2d701d9dd8b6d10d21047e56326dfa602426.zip
Merge pull request #872 from tylergibbs2/fix-comparablelistwatcher-memleak
Fix ComparableListWatcher not removing items in zero case
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs b/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs
index 0b13434a..b24f4178 100644
--- a/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs
+++ b/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs
@@ -63,7 +63,7 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers
{
if (this.LastValues.Count > 0)
{
- this.AddedImpl.AddRange(this.LastValues);
+ this.RemovedImpl.AddRange(this.LastValues);
this.LastValues.Clear();
}
return;