Infinite loop detected in For each loop with break

Hey, I’m making a procedural generation system and for some reason i’ve got an infinite loop in this blueprint. Can someone tell me what’s wrong here?



Stack:

Thx in advance!!

You have a triple nested loop. If a blueprint takes too long, you’ll get this message. There are a few ways around it.

I think the easiest is Project Settings->Engine->General Settings->Maximum Loop Iteration Count. Set it to a million or something.

1 Like