Editor won't launch with blueprint spawning code

Hello all. So I’m trying to spawn an actor when players join and it works except every time I shut down the editor and try to relaunch it hangs initializing at 70%. If I comment out the following line and rebuild it launches and then I can put it back and play, but have to comment/rebuild every time to get it to launch:



ACGameMode::ACGameMode(const class FObjectInitializer& PCIP) : Super(PCIP) {

	//static ConstructorHelpers::FObjectFinder<UBlueprint> PutNameHere(TEXT("Blueprint'/Game/ThirdPersonBP/Blueprints/CThirdPersonCharacter.CThirdPersonCharacter'"));
	//static ConstructorHelpers::FClassFinder<UBlueprint> PutNameHere(TEXT("Blueprint'/Game/ThirdPersonBP/Blueprints/CThirdPersonCharacter.CThirdPersonCharacter'"));
	static ConstructorHelpers::FObjectFinder<UClass> bpClassFinder(TEXT("Class'/Game/ThirdPersonBP/Blueprints/CThirdPersonCharacter.CThirdPersonCharacter_C'"));


You’ll notice I tried 3 different ways to do this.

Ok I got it to launch, not sure if this is correct. First you may notice I put the _C in the wrong one, but that didn’t make a difference…

I took out the “static” modifier and now the editor loads. I dunno if it needs to change this or call it twice on first load, but it does work now…