Saving inventory Question

You can drag of the multiple squares symbol (array) from inventory slots and then call a foreach loop for it. It will have an index inside of the loop. Then try connecting the save game slot after the loop completes (there is a completed pin at the bottom of the foreach loop
forloop

Also looking at the updateinventoryslot function you seem to be setting the variable inventory to just one specific slot feed. That doesn’t seem right.
Shouldn’t the reference to inventory hold the whole inventory?
What type of variable is inventory inside of the function?