Array gets cleared alone

Well i will be fast, i have an array which is resized to 45 every time I interact with a NPC, and it gets cleared when i leave the npc spehre colision. So i have put a print string node to print the size of the array and it prints 44 when i interact with the NPC so it works fine, but just 1 sec after that i right click my inventory slot to move one item from my inventory array to that array but it cant, and the print string says the size of the array is -1. I dont leave the NPC sphere so the array doesnt get cleared, and i dont have a clear node in any other functions. Maybe a bug?

Bye!

You know when this happens so you shoudl review what you doing with array in code reproducible for that action. Can you paste the code? This does not sound like garbage collection problem, which really should not happen in blueprints.

At least i was anle to solve it dude! It was a reference problem with an actor component that wasnt giving an error but it was doing crazy things jajaja.