Issue stems from code (0x005274D7) inside faction_upkeep() that doesn't take into consideration edge cases of factions with non-standard Colony Pods (Pirates, custom factions) before eliminating them. This can be fixed by adding in a final check against all faction controlled units if any of them contain a colony pod.
Issue stems from code (0x005274D7) inside faction_upkeep() that doesn't take into consideration edge cases of factions with non-standard Colony Pods (Pirates, custom factions) before eliminating them. This can be fixed by adding in a final check against all faction controlled units if any of them contain a colony pod.
See: https://github.com/tnevolin/thinker-doer/commit/ecea4fadfebefd21b86192e33ec2028e3e5b5df5#diff-0fef4bf9fcd523dfa1c85b27a330281bd2a8a888f79ec8b2a844e2202184df6cR183