Updated project to 4.6, and now this code crashes on StandAlone and MobilePreview, still works in-editor though:
ConstructorHelpers::FObjectFinder<UClass> TorchBP(TEXT("/Game/Projectiles/BP_P_Torch.BP_P_Torch_C"));
ProjectileClass = TorchBP.Object;
Relevant call stack part:
> ConstructorHelpersInternal::FindOrLoadObject<UClass>()
> + 552 bytes [c:\program files\unreal engine\4.6\engine\source\runtime\coreuobject\public\uobject\constructorhelpers.h:33]
> ConstructorHelpers::FObjectFinder<UClass>::FObjectFinder<UClass>()
> + 192 bytes [c:\program files\unreal engine\4.6\engine\source\runtime\coreuobject\public\uobject\constructorhelpers.h:91]
Can anyone reproduce this?
Thanks.