From 4f840c4ffee84df757bb593e8f3efe631235e521 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 15 Jan 2014 16:38:45 +0000 Subject: json loading --- NT/src/rotor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NT/src/rotor.cpp') diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index 96e4250..faea5f0 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -22,8 +22,8 @@ Json::Value Node::list_json(){ for (auto& var: vars) { string type=var.second->get_type(); Json::Value newvar; - newvar["type"]=type; - newvar["name"]=name; + newvar["type"]=var.second->get_type(); + newvar["name"]=var.second->name; newvar["connectable"]=var.second->connectable?"yes":"no"; if (dynamic_cast(var.second)){ newvar["input"]=Json::arrayValue; -- cgit v1.2.3