Changeset 9629 for code/branches/core6/src/libraries/core/BaseObject.cc
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/BaseObject.cc
r9590 r9629 55 55 @brief Constructor: Registers the object in the BaseObject-list. 56 56 */ 57 BaseObject::BaseObject( BaseObject* creator) : bInitialized_(false)57 BaseObject::BaseObject(Context* context) : bInitialized_(false) 58 58 { 59 59 RegisterRootObject(BaseObject); … … 70 70 this->mainStateFunctor_ = 0; 71 71 72 if (context) 73 this->setContext(context); 74 75 BaseObject* creator = orxonox_cast<BaseObject*>(context); 72 76 this->setCreator(creator); 73 77 if (this->creator_) … … 201 205 { 202 206 this->networkTemplateNames_.insert(temp->getLink()); 203 207 204 208 Template* link; 205 209 assert(!(link = Template::getTemplate(temp->getLink())) || !link->isLink());
Note: See TracChangeset
for help on using the changeset viewer.