Salome HOME
Addition of a new type of SalomeComponent to take advantage of HPContainer.
[modules/yacs.git] / src / engine / ServiceNode.cxx
index 89e23e872bb306e4e4684c73b77cb3c791717dc4..6d4b167cdb9928436a30ff6595053cbf0783ac09 100644 (file)
@@ -138,7 +138,7 @@ void ServiceNode::setComponent(ComponentInstance* compo) throw(YACS::Exception)
   if(compo)
     {
       DEBTRACE(compo->getInstanceName());
-      if(compo->getKind() != this->getKind())
+      if(compo->getKindForNode() != this->getKind())
         {
           //Not allowed
           std::string what("ServiceNode::setComponent : component instance kind not allowed ");