CreateStackArrayInContainer returns A parameter was invalid error if
amount-(amount/limit_per_stack)*limit_per_stack) == 0. So if used for example with amount 50000 and limit_per_stack 10000, it will return an errortext in the last result.
I believe it should pass just fine in such case. Leftover amount should be checked for greater than zero prior to creating.
CreateStackArrayInContainer
returnsA parameter was invalid
error ifamount-(amount/limit_per_stack)*limit_per_stack) == 0
. So if used for example withamount 50000
andlimit_per_stack 10000
, it will return an errortext in the last result.I believe it should pass just fine in such case. Leftover amount should be checked for
greater than zero
prior to creating.