C++ Empty Array

Hi, I’ve got the modular Construction Tool that Shoiko did. But it seems to be crashing a lot. mainly when exiting play in viewport. and also exiting the Editor. Chatting to Shoiko he said its seems to be because of the empty the Array. here is the line of code that is trying to be emptied.enter code here

GENERATED_USTRUCT_BODY()

		UPROPERTY()
		TArray<ABuildingModTile*> Column;

	FTiles::~FTiles(){
		Column.Empty();

Once I open the editor back up it seems to be duplicating the InstancedStaticMeshComponents and paste the original meshes outside the blueprint and here is a pic of the World Outliner

As you can see the Yellow is the meshes that it moved and the red is the duplicated in the blueprint. Does anyone know how to fix this cleanUp so it won’t do this and also not crash the editor.

There doesn’t really seem to be enough code here for me to really understand why the destructor is crashing. Try posting your problem to the thread associated with the addon here:

https://forums.unrealengine.com/showthread.php?61270-Modular-Construction-Tool-(Updated-3-5-2015)

I did Mak, Shoiko said it has to do with the emptying part of the script and its not emptying the Array and he is trying to figure out why its not emptying the Array and causing it to crash. I tried and set the destroy on empty to true but that didn’t change anything.