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

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