- Timestamp:
- Nov 6, 2017, 5:23:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/Level.cc
r11518 r11549 87 87 if(this->level_script_ != "") 88 88 { 89 this->controller_ .reset(new ScriptableController());89 this->controller_ = new ScriptableController(this->getContext()); 90 90 this->controller_->runScript(this->level_script_); 91 91 } … … 177 177 { 178 178 this->objects_.push_back(object); 179 if(this->controller_ .get()!= nullptr)180 object->registerToScriptableController(this->controller_ .get());179 if(this->controller_ != nullptr) 180 object->registerToScriptableController(this->controller_); 181 181 } 182 182
Note: See TracChangeset
for help on using the changeset viewer.