fix a crash due to uninitialized pimpl object

This commit is contained in:
Mamadou Babaei
2023-05-19 18:13:48 +02:00
parent 0b1f64883d
commit d62f5589b7
@@ -177,7 +177,8 @@ int32 ASGPlayerController::FImpl::GetForceFeedbackLevel(const AActor* Actor)
}
ASGPlayerController::ASGPlayerController(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
: Super(ObjectInitializer),
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter))
{
}