capture by reference in the buzz timer callback lambda or otherwise crash
This commit is contained in:
@@ -257,7 +257,7 @@ void ASGPlayerController::BeginPlay()
|
||||
GetWorldTimerManager().ClearTimer(Pimpl->TouchBuzzStopTimer);
|
||||
|
||||
FTimerDelegate TouchBuzzStopHandler;
|
||||
TouchBuzzStopHandler.BindLambda([&]()-> void
|
||||
TouchBuzzStopHandler.BindLambda([=]()-> void
|
||||
{
|
||||
Glove->SendHaptics(USGBuzzCommand::Off(this));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user