Changeset 10554 for code/branches/core7
- Timestamp:
- Aug 29, 2015, 4:23:00 PM (9 years ago)
- Location:
- code/branches/core7/src/orxonox/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/orxonox/gametypes/Gametype.cc
r10479 r10554 61 61 RegisterObject(Gametype); 62 62 63 this->setGametype(SmartPtr<Gametype>(this, false)); 64 63 65 this->gtinfo_ = new GametypeInfo(context); 64 65 this->setGametype(SmartPtr<Gametype>(this, false)); 66 this->gtinfo_->setGametype(this); 66 67 67 68 this->defaultControllableEntity_ = Class(Spectator); … … 98 99 if (this->isInitialized()) 99 100 { 100 this->gtinfo_->destroy(); 101 if (this->gtinfo_) 102 this->gtinfo_->destroy(); 101 103 102 104 ModifyConsoleCommand(__CC_addBots_name).setObject(NULL); -
code/branches/core7/src/orxonox/gametypes/Gametype.h
r10349 r10554 176 176 virtual void importMementoState(const std::vector<GSLevelMementoState*>& states); 177 177 178 SmartPtr<GametypeInfo> gtinfo_;178 WeakPtr<GametypeInfo> gtinfo_; 179 179 180 180 bool bAutoStart_;
Note: See TracChangeset
for help on using the changeset viewer.