Skip to content

Commit

Permalink
Update switch_node.h
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide authored Mar 13, 2024
1 parent 0a3393c commit 97c3f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/behaviortree_cpp/controls/switch_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ inline void SwitchNode<NUM_CASES>::halt()
template <size_t NUM_CASES>
inline PortsList SwitchNode<NUM_CASES>::providedPorts()
{
static PortsList ports = []() {
static PortsList provided_ports = []() {
PortsList ports;
ports.insert(BT::InputPort<std::string>("variable"));
for(unsigned i = 1; i <= NUM_CASES; i++)
Expand All @@ -100,7 +100,7 @@ inline PortsList SwitchNode<NUM_CASES>::providedPorts()
return ports;
}();

return ports;
return provided_ports;
}

template <size_t NUM_CASES>
Expand Down

0 comments on commit 97c3f6a

Please sign in to comment.