Skip to content

Commit 06a508e

Browse files
committed
fix: pointer references
1 parent d31eb1f commit 06a508e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_topic_sub_node.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ template<class T> inline
273273
}
274274

275275
// Check if there was a message received before the creation of this subscriber action
276-
if (sub_instance_.last_msg)
276+
if (sub_instance_->last_msg)
277277
{
278-
last_msg_ = sub_instance_.last_msg;
278+
last_msg_ = sub_instance_->last_msg;
279279
}
280280

281281
// add "this" as received of the broadcaster

0 commit comments

Comments
 (0)