An uncontrolled creature with `Map == null` throws in `BaseAI.Deactivate()` when the condition reaches `Map.GetSector()`. A controlled creature with a null map avoids the exception but leaves its AI timer running. Treat a null map like `Map.Internal` in the existing stop condition. This stops the timer without dereferencing the missing map and leaves the existing valid-map condition and return-home scheduling unchanged. Addresses only the null-map `Deactivate()` item in #2627; the other audit items remain separate. No era-specific rules are changed. |
||
|---|---|---|
| .. | ||
| BaseAI | ||
| AIControlMobileTarget.cs | ||
| AnimalAI.cs | ||
| ArcherAI.cs | ||
| BerserkAI.cs | ||
| HealerAI.cs | ||
| MageAI.cs | ||
| MeleeAI.cs | ||
| OppositionGroup.cs | ||
| PredatorAI.cs | ||
| ThiefAI.cs | ||
| VendorAI.cs | ||