Integer resets to default value after drop

Hi, i have a problem with my integer (Indeks Czaru) after On drop.


When i check my integer like this, its value is ok, the one i want to give to him. But 1 frame later, in event graph

its value is reseted to default. I am using this value as Set only in On drop, so i dont change it anywhere.
Some ideas?

Hmm…Are you sure it’s the IndeksCzaru value that’s resetting? Or is it the problem with that array, and maybe it’s trying to reference something from the spell-list that’s invalid? Try the print-value thing you do in the first image in the second image too, to be sure. You might want to set “size to fit” to true on that array-set node, too, just in case.

Some other ideas: Since this is in a widget…how are you creating the widget? Could you be re-adding the widget, and thus reinitializing it, in between the two screenshots?
Is the onDrop function being run more than once, so it’s resetting itself?