Skip to content

Commit

Permalink
Update ParallelRobustnessPatches.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettluskey committed Nov 9, 2024
1 parent b673c93 commit d52c032
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ internal class ParallelRobustnessPatches
static bool ParallelCheckExitingSettlements(CampaignTickCacheDataStore __instance, int startInclusive, int endExclusive)
{
for (int index = startInclusive; index < endExclusive; ++index)
Campaign.Current.MobileParties[index].CheckExitingSettlementParallel(ref __instance._exitingSettlementCount, ref __instance._exitingSettlementMobilePartyList);
{
MobileParty mobileParty = Campaign.Current.MobileParties[index];

if (mobileParty.Party == null) continue;

mobileParty.CheckExitingSettlementParallel(ref __instance._exitingSettlementCount, ref __instance._exitingSettlementMobilePartyList);
}

return false;
}
Expand Down

0 comments on commit d52c032

Please sign in to comment.