I made a Map which contains an int for key as index, and a Structure as value. The structure has as elements an Array of a different structure and a reference to an object (in example I changed that to a bool, as I don’t have the class in the test project). The structure from the array has a boolean, two strings and an int as its members.
Now when I call Map->Add (from Blueprint) it does add a new value with the index that is given and the rest I’m leaving as null/default. The problem that I have is when I call Map->Find it does find the value for the given index, but then I want to add new values into the array, but when I call Array->Add, those values aren’t added.
Here are some images for a better picture of the problem:
This is the Map:

This is the Structure that is set as the value for the Map:

This is the Structure that is used for the values inside the array from above:

And this is the test to add values into the Map and then into the Array inside the Map for key value of 1:
After the 2 calls to add values inside the array, I’m calling a For Each Loop and printing the values, and when For Each Loop is done, print the size of the array. But the array has a size of 0, even tho I called add two times before it.
Why aren’t those two values added into array, and what should I change?








