# Adding an array of c ++ classes in a class BP, blocks the editor from loading at 75% on new reboot

**URL:** <https://forums.unrealengine.com/t/adding-an-array-of-c-classes-in-a-class-bp-blocks-the-editor-from-loading-at-75-on-new-reboot/489693>\
**Category:** C++\
**Tags:** corrupted-project, unreal-engine, question\
**Created:** [October 9, 2021, 11:41am UTC](https://forums.unrealengine.com/t/adding-an-array-of-c-classes-in-a-class-bp-blocks-the-editor-from-loading-at-75-on-new-reboot/489693 "2021-10-09T11:41:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ciullss\_7Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ciullss_7games/32/903355_2.png) [@Ciullss\_7Games](https://forums.unrealengine.com/u/Ciullss_7Games)\
**Post date:** [October 9, 2021, 11:41am UTC](https://forums.unrealengine.com/t/adding-an-array-of-c-classes-in-a-class-bp-blocks-the-editor-from-loading-at-75-on-new-reboot/489693/1 "2021-10-09T11:41:11Z")

</div>

I’ve been trying to add a simple C ++ class array for some time. Everything seems to be fine, no crashes, no errors, nothing at all … until you decide to restart the editor. The editor remains stuck at 75% when restarted.  
If I delete the class with the C ++ class array, the editor loads completely.  
The error only happens with one C ++ class, all other classes do not cause any errors.

---

<div class="post-metadata">

**Author:** ![Ciullss\_7Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ciullss_7games/32/903355_2.png) [@Ciullss\_7Games](https://forums.unrealengine.com/u/Ciullss_7Games)\
**Post date:** [August 7, 2022, 2:54pm UTC](https://forums.unrealengine.com/t/adding-an-array-of-c-classes-in-a-class-bp-blocks-the-editor-from-loading-at-75-on-new-reboot/489693/2 "2022-08-07T14:54:54Z")

</div>

I solved the problem some time ago with the forward declaration.  
Basically I included the c ++ classes in the headers.

**Wrong behavior** (thisclass.h)

```auto
#include "class.h" // wrong behavior
#include "thisclass.generated.h"

UCLASS()
class GAME_API AC_thisclass
{
	GENERATED_BODY()
public:
        AClass* VarName; //
}

```

**Correct behavior** (thisclass.h)

```auto
#include "thisclass.generated.h"

class AClass; //correct behavior

UCLASS()
class GAME_API AC_thisclass
{
	GENERATED_BODY()
public:
        AClass* VarName; 
}

```

(thisclass.cpp)

```auto
#include <thisclass.h>
#include <Class.h> //correct

```
