The bug is that if you create a structure from the MAP container, in which the key is a class, then the compilation will produce an error in the arrays.
Error: Array index out of bounds: 0 from an array of size 0
I’ve been catching this bug for a long time, and I found it. I could not understand what the problem was, and I found this very reason.
While the solution is simple, create the same MAP container in the object itself, rather than the global structure. But I would like that would be structures of this type could be used. You can put other types of keys into a key, in fact, with the class of the problem.
The build was successful and I was able to run the .exe as expected. Can you try replacing Bluepirnt_Effect_Steam with Actor in your screenshot and let me know if you get the same behavior. If you do run into the same error, please provide the full callstack and a sample project to help test locally.
I figured out more, and brought out a more specific instruction.
Open any project, you can a new one.
Create 3 items: simple Actor Blueprint 2 pcs. Actor1 and Actor2.
And the Structure with the Map container, in which the key will be the Actor Class, And the value does not matter what.
Set the key value to Actor1.
In Actor2, create a variable of the type of this structure.
Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here Unreal Engine Issues and Bug Tracker (UE-48925) . You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.