Try to rebuild, also i not sure if this is related but by convetions used in UE4 all functions and varables names should start with uppercase letter, UHT read those to generate those files so it might be a cause.
hmm the code works but not the task I like to finish
could using a pointer be the reason for this problem?
(short sum up, I cannot attach the actor I’m iterating through)