Error accessing structure array variable at index

I created an actor that has the function of receiving the EXP score of each team in the game and distributing it to the players that belong to the winning team of the game. He checks the number of teams he gets one by one and at the same time he checks if his EXP is greater than that of all the teams with it in the photo, but when I call the event, the dedicated server console says it was not possible to access the array structure and the rest of the event is not called.


I managed to solve the problem by pressing Ctrl + A to select all the code, right click and click on “refresh” and then on compile, and solved, besides, I added a branch node that checks if there is already a winning team after the node: ForLoop