diff options
Diffstat (limited to 'NT/src/rotor.h')
| -rw-r--r-- | NT/src/rotor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NT/src/rotor.h b/NT/src/rotor.h index 9228388..ef90eb6 100644 --- a/NT/src/rotor.h +++ b/NT/src/rotor.h @@ -143,8 +143,8 @@ namespace Rotor { } return false; } - void add(int num=1){ - for (int i=0;i<num;i++) values.push_back(T()); + void add(std::string _name="",bool _connectable=true,int num=1){ + for (int i=0;i<num;i++) values.push_back(Variable_type<T>(_name,_connectable)); } bool connect(int which,Node* target){ if (values.size()>which){ |
