summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SnapshotListDiff.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/SnapshotListDiff.cs')
-rw-r--r--src/SMAPI/Framework/SnapshotListDiff.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/SnapshotListDiff.cs b/src/SMAPI/Framework/SnapshotListDiff.cs
index d4d5df50..2d0efa0d 100644
--- a/src/SMAPI/Framework/SnapshotListDiff.cs
+++ b/src/SMAPI/Framework/SnapshotListDiff.cs
@@ -42,10 +42,12 @@ namespace StardewModdingAPI.Framework
this.IsChanged = isChanged;
this.RemovedImpl.Clear();
- this.RemovedImpl.AddRange(removed);
+ if (removed != null)
+ this.RemovedImpl.AddRange(removed);
this.AddedImpl.Clear();
- this.AddedImpl.AddRange(added);
+ if (added != null)
+ this.AddedImpl.AddRange(added);
}
/// <summary>Update the snapshot.</summary>