Skip to content

Commit 417b3e4

Browse files
facontidavideclaude
andcommitted
Fix missing read_parameter_from_ports_ initialization in DelayNode (#1103)
Add explicit initialization of read_parameter_from_ports_(false) in the first constructor to match the pattern used by TimeoutNode, RetryNode, RepeatNode, and ParallelNode. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e153541 commit 417b3e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/decorators/delay_node.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
namespace BT
77
{
88
DelayNode::DelayNode(const std::string& name, unsigned milliseconds)
9-
: DecoratorNode(name, {}), timer_id_(0), msec_(milliseconds)
9+
: DecoratorNode(name, {})
10+
, timer_id_(0)
11+
, msec_(milliseconds)
12+
, read_parameter_from_ports_(false)
1013
{
1114
setRegistrationID("Delay");
1215
}

0 commit comments

Comments
 (0)