Skip to content

Commit

Permalink
FlowNode_Timer's RemainingStepTime should be used only for first time…
Browse files Browse the repository at this point in the history
…r tick (#75)
  • Loading branch information
BorMor authored and MothDoctor committed Nov 29, 2021
1 parent fbc7208 commit 296a84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Flow/Private/Nodes/Route/FlowNode_Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void UFlowNode_Timer::OnLoad_Implementation()
{
if (RemainingStepTime > 0.0f)
{
GetWorld()->GetTimerManager().SetTimer(StepTimerHandle, this, &UFlowNode_Timer::OnStep, RemainingStepTime, true);
GetWorld()->GetTimerManager().SetTimer(StepTimerHandle, this, &UFlowNode_Timer::OnStep, StepTime, true, RemainingStepTime);
}

GetWorld()->GetTimerManager().SetTimer(CompletionTimerHandle, this, &UFlowNode_Timer::OnCompletion, RemainingCompletionTime, false);
Expand Down

0 comments on commit 296a84d

Please sign in to comment.