It would have everybody. When I first out that bug I was wondering why I am getting that error. Then I noticed that variable @lead which has a pointer to the leading enemy. So I put two leaders on the map, both outside of the perception area of the other. As soon as they got too close, the game crashed. xD