summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/robot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Concept/Framework/robot.cpp')
-rw-r--r--source/Concept/Framework/robot.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Concept/Framework/robot.cpp b/source/Concept/Framework/robot.cpp
index 24038d3..f982be6 100644
--- a/source/Concept/Framework/robot.cpp
+++ b/source/Concept/Framework/robot.cpp
@@ -24,6 +24,8 @@ bool Robot::AddModule(IO_Module* newModule)
if(modules[newModule->GetId()])
return false;
+ newModule->SetParent(this);
+
modules[newModule->GetId()] = newModule;
return true;