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

**URL:** <https://forums.unrealengine.com/t/array-of-object-type-in-a-struct-getting-reset-after-editor-restart/332291>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [September 15, 2015, 7:08pm UTC](https://forums.unrealengine.com/t/array-of-object-type-in-a-struct-getting-reset-after-editor-restart/332291 "2015-09-15T19:08:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![clausbugge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@clausbugge](https://forums.unrealengine.com/u/clausbugge)\
**Post date:** [September 15, 2015, 7:08pm UTC](https://forums.unrealengine.com/t/array-of-object-type-in-a-struct-getting-reset-after-editor-restart/332291/1 "2015-09-15T19:08:57Z")

</div>

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.

 ![58734-screenshot+2015-09-15+19.19.12.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/2/112791869a237706b60704153138dd3a5bfd4da6.png)

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.

 ![58732-screenshot+2015-09-15+19.13.25.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/3/9b3483d7e99d29ba017045dc7b9eca07fc9578f6.png)

 ![58731-screenshot+2015-09-15+19.06.15.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/d/84d50f88267f42b09bc4370ddd7f2026fd097508.png)

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!

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [September 16, 2015, 5:56pm UTC](https://forums.unrealengine.com/t/array-of-object-type-in-a-struct-getting-reset-after-editor-restart/332291/2 "2015-09-16T17:56:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GoalDrivenGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GoalDrivenGames](https://forums.unrealengine.com/u/GoalDrivenGames)\
**Post date:** [October 8, 2017, 10:25pm UTC](https://forums.unrealengine.com/t/array-of-object-type-in-a-struct-getting-reset-after-editor-restart/332291/3 "2017-10-08T22:25:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [October 9, 2017, 1:34pm UTC](https://forums.unrealengine.com/t/array-of-object-type-in-a-struct-getting-reset-after-editor-restart/332291/4 "2017-10-09T13:34:28Z")

</div>

Hi NuHabitStudios,

This [exact issue was fixed](https://issues.unrealengine.com/issue/UE-21151) 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
