Merge pull request #872 from tylergibbs2/fix-comparablelistwatcher-memleak

Fix ComparableListWatcher not removing items in zero case
This commit is contained in:
Jesse Plamondon-Willard 2022-10-08 18:13:13 -04:00 committed by GitHub
commit 0cce2d701d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers
{ {
if (this.LastValues.Count > 0) if (this.LastValues.Count > 0)
{ {
this.AddedImpl.AddRange(this.LastValues); this.RemovedImpl.AddRange(this.LastValues);
this.LastValues.Clear(); this.LastValues.Clear();
} }
return; return;