Merge pull request #872 from tylergibbs2/fix-comparablelistwatcher-memleak
Fix ComparableListWatcher not removing items in zero case
This commit is contained in:
commit
0cce2d701d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue