From 3f21d3302c49380b5be94168ea4ed6ded5402559 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 12 Mar 2024 10:29:02 +0100 Subject: [PATCH] fix a crash when calling one of the SGHandInterpolatorImpl constructors which happens due to unintialized pimpl object --- .../Private/SGCoreImpl/SGHandInterpolatorImpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/SenseGloveCoreImpl/Private/SGCoreImpl/SGHandInterpolatorImpl.cpp b/Source/SenseGloveCoreImpl/Private/SGCoreImpl/SGHandInterpolatorImpl.cpp index a9e4b32e..c183d2f7 100644 --- a/Source/SenseGloveCoreImpl/Private/SGCoreImpl/SGHandInterpolatorImpl.cpp +++ b/Source/SenseGloveCoreImpl/Private/SGCoreImpl/SGHandInterpolatorImpl.cpp @@ -94,6 +94,7 @@ FSGHandInterpolatorImpl::FSGHandInterpolatorImpl() } FSGHandInterpolatorImpl::FSGHandInterpolatorImpl(const bool bRightHanded) + : Pimpl(TUniquePtr(new FImpl{this}, PimplDeleter)) { Pimpl->HandInterpolator = FHandInterpolatorType(bRightHanded); }