Items not being added to inventory (Solved)

That’s the index for the new slot being created, so I get the index of the last current slot, then +1 and add that to the Inventory Coordinate struct (Sub-Inventory Index, and Item/Slot Index (both Integers)), it’s basically calculating the new array element’s index before it’s created.

I forgot to add a return node, but it is returning as found because everything afterwards is executing.

They’re set to false and 0 respectively, and they are local variables so they reset every time the function is called.

Yeah I quickly made that code to force add a Medkit to my inventory, in the actual functions which sorts the items and adds them to specific slots or adds new slots or finding slots all use the success and return nodes everywhere, I just forgot on that one, but again it’s working as it should, and the FindSub-Inventory function is definitely returning successful as seen in the last image because it’s returning 2 as the sub-inventory index, which is the Consumables sub-inventory, and the AddUnique isn’t being used, that was there from when I was trying to see if that would make it work, but it didn’t.