Hello all,
I have a class called AWeapon, an actor derived from AItem, in which I declare a UBoxComponent in my .h file and use CreateDefaultSubobject in my constructor in the .cpp file. I forward declare the box component in the header and include the BoxComponent.h header in the .cpp file. When I use CTRL+F5 to launch upon compilation, I get a crash. When I remove the CreateDefaultSubobject call in the constructor, it builds and launches fine. My code:
![alt text][1]
![alt text][2]
Thanks!