Array of object type in a struct getting reset after editor restart

Hi!
I have a problem with making a array of object types in a struct. the goal is to have a struct containing wave information for a tower defense, with one array of integers for amount of enemies, and one array for enemy types, all deriving from the baseEnemy class.

The struct works fine until i restart the editor, when all the default values for the array containing type information is reset. the integer array remains intact. if i try to fill the array again, i can only fill the array with types i have open in the editor.

The issue has been recreated on a different machine, and with 4.9.0 and 4.9.1.

am i doing something wrong, is this a bug, or if someone knows a good way around it, i would love some help!

Hi clausbugge,

I was able to reproduce this issue, so I’ve created JIRA UE-21151. Our developers will be investigating it further and we will post here with updates as we have them.

Cheers,

TJ

And is still a problem in 4.16.3. What a shame…

Hi NuHabitStudios,

This exact issue was fixed back in 4.11. If you are experiencing this in 4.16, it is most likely a similar but different issue. Could you please create a new AnswerHub report in the Bug section and provide as much info as possible (exact repro steps, screenshots, test project, etc). Also provide a link to this report as well.

Thanks,
-TJ