The following code appears to crash my editor as soon as I compile. Disabling it causes the editor not to crash on load, but recompile attempts show no avail. Any clue as to why my code crashes the editor?
SPBody->AttachTo(RootComponent);
static ConstructorHelpers::FObjectFinder<USkeletalMesh> SPMesh(TEXT("SkeletalMesh'/Game/GameStuff/Models/3rdPersonChar/SK_Mannequin.SK_Mannequin'"));
SPBody->SetSkeletalMesh(SPMesh.Object);
SPBody->bOnlyOwnerSee = true;
As a side note, the third line,
SPBody->SetSkeletalMesh(SPMesh.Object);
Appears to crash the editor from the crash log’s execution stack.