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

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