ConstructorHelpers::FObjectFinder crash on StandAlone and Mobile Preview only

rvc
Wed, 10 Dec 2014 09:27:26 +0000
Mobile

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.

2 posts - 1 participant