diff --git a/Assets/Scripts/SS3D/Systems/Inventory/Containers/Container.cs b/Assets/Scripts/SS3D/Systems/Inventory/Containers/Container.cs index 9d699c7cfc..03c39162d2 100644 --- a/Assets/Scripts/SS3D/Systems/Inventory/Containers/Container.cs +++ b/Assets/Scripts/SS3D/Systems/Inventory/Containers/Container.cs @@ -498,9 +498,9 @@ public void Dump() /// public void Purge() { - foreach (StoredItem item in StoredItems) + for(int i =0; i < StoredItems.Count; i++) { - item.Item.Delete(); + StoredItems[i].Item.Delete(); } StoredItems.Clear();