"set invalid index on array" warning, but it's only a problem in the build

I’m prototyping a game using Blueprints and having issues but only with my build/playing in “standalone” mode. Basically, when playing in the editor I can add items to the inventory but when playing in “standalone” I can’t. I get an “attempted to set an invalid index on array inventory [-1/11]!” warning. Below is the blueprint where I set the array elements…but I’m not sure this is what the problem is since it works in the editor and I get no errors. Any ideas on how I can go about solving this? Or maybe I’m missing something obvious (not a programmer, just a designer trying to get the idea prototyped).

Close up:

Do you have errors in the log during play in editor?

Nope, no errors and this warning does not show up.

If someone ends up here with the same problem…I had the same issue as the linked post. I needed to promote to variable rather than make a new slot structure,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.