Merge pull request #53 from Foxtr0t1337/main

Fix game freeze caused by shelf linking (and renaming)
This commit is contained in:
bbradson
2024-06-17 00:24:10 +02:00
committed by GitHub
5 changed files with 3 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -291,6 +291,9 @@ public sealed class StoreUtilityPrepatches : ClassWithFishPrepatches
if (storageGroup != null) if (storageGroup != null)
{ {
otherGroupMembers = storageGroup.SpawnedMemberCount() - 1; otherGroupMembers = storageGroup.SpawnedMemberCount() - 1;
if (otherGroupMembers < 0)
goto FixCache;
Debug.VerifyStorageGroup(otherGroupMembers, listInPriorityOrder, i, storageGroup); Debug.VerifyStorageGroup(otherGroupMembers, listInPriorityOrder, i, storageGroup);
groupsOfPriorityCount -= otherGroupMembers; groupsOfPriorityCount -= otherGroupMembers;