diff --git a/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs b/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs index 717966d..9cd6e17 100644 --- a/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs +++ b/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs @@ -291,6 +291,9 @@ public sealed class StoreUtilityPrepatches : ClassWithFishPrepatches if (storageGroup != null) { otherGroupMembers = storageGroup.SpawnedMemberCount() - 1; + if (otherGroupMembers < 0) + goto FixCache; + Debug.VerifyStorageGroup(otherGroupMembers, listInPriorityOrder, i, storageGroup); groupsOfPriorityCount -= otherGroupMembers;