diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-08 18:13:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 18:13:13 -0400 |
commit | 0cce2d701d9dd8b6d10d21047e56326dfa602426 (patch) | |
tree | d63bd30a844cd6c387f2a7a367c0c724a9cc0d00 /src/SMAPI | |
parent | 2e918823ba7771e45d78a8efb68aa5ea381e8e78 (diff) | |
parent | f0e52061e34f3a397dbe1120590d062feb1be0ef (diff) | |
download | SMAPI-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.cs | 2 |
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; |