From 3f8199f1cdf331157f5e349b7bd561d7e3423b83 Mon Sep 17 00:00:00 2001 From: mayo Date: Sat, 1 Nov 2025 17:23:56 -0400 Subject: [PATCH] misc: already in lock, change back to _collections.Count for readibility --- Penumbra/Collections/Manager/CollectionStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;