Two characters in one level causes freeze

Okay, so I’m following the Twin-Stick shooter tutorial and I’m on the part where you are creating and enemy AI.

So far I have two classes that inherit BaseCharacter, which inherits Character.

HeroCharacter and EnemyCharacter.

Hitting play with HeroCharacter is fine and works great. But if I am to add a bot EnemyCharacter in the level it causes the editor to freeze and eat my memory 6GB and rising. Any idea how to fix it? I googled but didn’t seem to find anything.

It looks like having 2 types of Character causes the engine to do a loop of reinstantiating something and never ends, so eats all the memory.

Sounds like you have an infinite loop going on somewhere there.

Correct. I have encountered the problem before but couldn’t manage to fix it. But now again. I really want to fix it.