Bug - it is not possible to add more than 3 units to a Minor God

Hello everyone!

I’ve been working on my mod since Early Access and encountered a problem yesterday. I think I’ve solved it now, but I have a question about it.

I wanted to give the Minor God Dionysus various Hydra units. I reduced the required damage to get another head to 1, so they transform immediately with the first attack. In total, it was 1 new unit per head, so 4 new units.

My problem was that the game crashed every time I could select the god Dionysus in the town center.

I tried everything possible for nearly 10 hours because I thought something was written incorrectly with the units or the tech. After testing it with vanilla units and it still crashing, I realized there must be another reason.

It turns out that as soon as I add 4 units to a Minor God, the game crashes. With 3 units, it works perfectly.

I think it’s because when you age up, you always get a preview image with the trainable units, and the image can only fit a maximum of 3 units. The 4th unit would be outside the preview, and that’s why it crashes, or something like that.

Are there any experiences that confirm this? Because if I add the same units and techs to a Major God, like Zeus or Hades, everything works fine.

Maybe this will help others in the future.