capture by reference in the buzz timer callback lambda or otherwise crash

This commit is contained in:
Mamadou Babaei
2023-05-19 18:14:40 +02:00
parent 4a47007ff4
commit 4a01f80d45
@@ -257,7 +257,7 @@ void ASGPlayerController::BeginPlay()
GetWorldTimerManager().ClearTimer(Pimpl->TouchBuzzStopTimer);
FTimerDelegate TouchBuzzStopHandler;
TouchBuzzStopHandler.BindLambda([&]()-> void
TouchBuzzStopHandler.BindLambda([=]()-> void
{
Glove->SendHaptics(USGBuzzCommand::Off(this));
});