Foreach loop fails with actor spawn

Hello guys,

I’m having troubles using a foreach loop to spawn actors.
I have a infinite loop error.

When i use a get and specify an index to my array and then spawn the actor, it works.
When i use the same loop with the same array and try a simple print, it works.

Does anyone have an idea?

Here is the error message:

What’s in the construction script of each object?

One of them has a node Parent:BeginPlay

My bad!

Anything in the parent that we should know about?

The parent is the blueprint that use the loop.
That’s why the loop is infinite!

Ah, makes sense, well spotted.