fix a crash due to uninitialized pimpl object

This commit is contained in:
Mamadou Babaei
2023-05-19 18:04:29 +02:00
parent 43070d8ce3
commit b2ddd29d4c
@@ -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))
{
}