I saw a warning in the log when running PIE:
Warning: Attempted to get an item from array K2Node_MakeArray_Array33 out of bounds [-1/15]!
I started debugging by inserting a log print in the game logic: if my debug print was above the warning I moved it a bit more downstream. Eventually I found the place where it happens but there is nothing there… Here is what I mean by that:
The last node of ImportantFunction is a log print “A” right now. And in the log the order of lines is this:
Warning: Attempted to…
So this faulty array access happens after the last node of the function but before the print following the function call… If I unlink the function call then there is no “A” and no warning in the log. There are no latent functions like timelines or timers or anything, just a rather linear node tree.