Skip to content

Commit 87d2f03

Browse files
committed
Fix issue #909: static queue in Loop
1 parent f58c59b commit 87d2f03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/behaviortree_cpp/decorators/loop_node.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class LoopNode : public DecoratorNode
6060
// special case: the port contains a string that was converted to SharedQueue<T>
6161
if(static_queue_)
6262
{
63-
current_queue_ = static_queue_;
63+
current_queue_ = std::make_shared<std::deque<T>>();
64+
*current_queue_ = *static_queue_;
6465
}
6566
}
6667

0 commit comments

Comments
 (0)