Skip to content

Commit f3a6c42

Browse files
committed
don't reset SequenceWithMemory when halted
1 parent 62b28c2 commit f3a6c42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controls/sequence_with_memory_node.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ NodeStatus SequenceWithMemory::tick()
9292

9393
void SequenceWithMemory::halt()
9494
{
95-
current_child_idx_ = 0;
95+
// should we add this line of code or not?
96+
// current_child_idx_ = 0;
9697
ControlNode::halt();
9798
}
9899

0 commit comments

Comments
 (0)