diff --git a/Penumbra/Collections/Manager/CollectionStorage.cs b/Penumbra/Collections/Manager/CollectionStorage.cs index c20d72bb..1f49e4e1 100644 --- a/Penumbra/Collections/Manager/CollectionStorage.cs +++ b/Penumbra/Collections/Manager/CollectionStorage.cs @@ -207,7 +207,7 @@ public class CollectionStorage : IReadOnlyList, IDisposable, ISer { lock (_collectionsLock) { - if (collection.Identity.Index <= ModCollection.Empty.Identity.Index || collection.Identity.Index >= Count) + if (collection.Identity.Index <= ModCollection.Empty.Identity.Index || collection.Identity.Index >= _collections.Count) { Penumbra.Messager.NotificationMessage("Can not remove the empty collection.", NotificationType.Error, false); return false;