Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix game hang caused by shelf linking. #53

Merged
merged 2 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified 1.4/Assemblies/PerformanceFish.dll
Binary file not shown.
Binary file modified 1.4/Assemblies/PerformanceFish.pdb
Binary file not shown.
Binary file modified 1.5/Assemblies/PerformanceFish.dll
Binary file not shown.
Binary file modified 1.5/Assemblies/PerformanceFish.pdb
Binary file not shown.
3 changes: 3 additions & 0 deletions Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ public static bool ReplacementBody(Thing t, Pawn carrier, Map map,
if (storageGroup != null)
{
otherGroupMembers = storageGroup.SpawnedMemberCount() - 1;
if (otherGroupMembers < 0)
goto FixCache;

Debug.VerifyStorageGroup(otherGroupMembers, listInPriorityOrder, i, storageGroup);

groupsOfPriorityCount -= otherGroupMembers;
Expand Down