Skip to content

Commit

Permalink
Merge pull request #86 from MomentSum/bugfix_over_repetition
Browse files Browse the repository at this point in the history
fix: Correct amount of repetitions, when using the BTRepeat Decorator
  • Loading branch information
ThePat02 authored Aug 27, 2024
2 parents cc6c347 + 2092e9d commit aacb575
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func tick(delta: float, actor: Node, blackboard: Blackboard):
if current_count == null:
current_count = 0

if current_count <= repetition:
if current_count < repetition:
var response = leaf.tick(delta, actor, blackboard)

if response == BTStatus.RUNNING:
Expand Down

0 comments on commit aacb575

Please sign in to comment.