Need help with an inventory stacking blueprint

I am trying to design an inventory system that when an item reaches its maximum stack amount a new stack is created next to it. The problem I have is that it works perfectly for the first stack, it fills to the maximum and a new array element is added to the array but then it just adds more array elements instead of filling the next stack that isn’t full.

Any help would be great.

Hi

It will be best if I can see the blueprint/C++ code of your stacking system. But according to your word the problem can be fix by ignore the stack that have reached its max stacking size. The promblems that causes this is when the first stack is full, then it will add a new array element, but the computer will still check the first array element, so it will keep on adding new array element to your array.

Example: