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

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