Integer in struct not updating

Hi,

I have this weird bug where if I make a struct with various variables, including integers that are updated, but one in particular in not.

I’ve tried:

  • Creating a temp variable to hold the value and then insert it.
  • Setting the member after the make node;
  • Creating a copy of the final array;
  • Creating a side struct with just an integer;
    Never worked, the variable were never initialized.

The output from the make\set node is correct but when it is passed into the array, not all variables are passed.

My setup:

The structure. The variable which is not updated is “array location”

Many things that can go wrong here. But with that Snippet alone I cant track it down. But most likely the source you pull from has already the wrong Value. Use Breakpoint and track back where the Data is comming from. Pretty sure the assignment itself is not the source of your Bug (confirm it yourself by adding something the same way to a Dummy struct on Begin Play)

When I made a breakpoint after the assign and the make node returns the correct values to all nodes but the array doesn’t receive the correct value

Does exactly what expected.

I’ve tried a similar setup to yours and this are the results.