# Why is this for loop an infinite loop?

**URL:** <https://forums.unrealengine.com/t/why-is-this-for-loop-an-infinite-loop/467316>\
**Category:** Audio\
**Tags:** infinite-loop, project-settings, unreal-engine, glitch, loop, bug-report, question\
**Created:** [June 27, 2020, 1:19am UTC](https://forums.unrealengine.com/t/why-is-this-for-loop-an-infinite-loop/467316 "2020-06-27T01:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NinjaHisser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NinjaHisser](https://forums.unrealengine.com/u/NinjaHisser)\
**Post date:** [June 27, 2020, 1:19am UTC](https://forums.unrealengine.com/t/why-is-this-for-loop-an-infinite-loop/467316/1 "2020-06-27T01:19:49Z")

</div>

![305555-ue4crash.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/4/d44bc7d18c4379ac142ede3c10a485c533a24279.png)

For some reason the top loop is the limit before it says I have an infinite loop, wich is not true  
This is the only actor of its class in the scene

---

<div class="post-metadata">

**Author:** ![NinjaHisser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NinjaHisser](https://forums.unrealengine.com/u/NinjaHisser)\
**Post date:** [June 27, 2020, 1:29am UTC](https://forums.unrealengine.com/t/why-is-this-for-loop-an-infinite-loop/467316/2 "2020-06-27T01:29:00Z")

</div>

How i solved it: I changed the Maximul loop iteration count to a lower number, restarted the engine and it worked!
