FactionStaticTargetPatch read m_targetStatic as a boxed object, so the null check missed Unity's destroyed-object state. A piece destroyed while a mob targeted it passed the check, and reading its gameObject threw. The throw escaped into MonoUpdaters.FixedUpdate and stopped every AI after that mob, every frame, until the field changed. Cast to Component and use Unity's null check; clear a dead target. |
||
|---|---|---|
| .. | ||
| FactionHostilityPatch.cs | ||
| FactionMerchant.cs | ||
| FactionMerchantCatalog.cs | ||
| FactionMerchantJokes.cs | ||
| FactionMerchantPatches.cs | ||
| FactionMerchantRuntime.cs | ||
| FactionMerchantSellPanel.cs | ||
| FactionMerchantSetup.cs | ||
| FactionPieceTruce.cs | ||
| FactionRaids.cs | ||
| FactionsConfig.cs | ||