Changeset 2786 for code/branches/questsystem5/src/orxonox/objects/quest
- Timestamp:
- Mar 15, 2009, 12:55:45 PM (16 years ago)
- Location:
- code/branches/questsystem5/src/orxonox/objects/quest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.cc
r2785 r2786 56 56 RegisterRootObject(QuestManager); 57 57 58 assert(singletonRef_s == 0); 59 singletonRef_s = this; 58 60 } 59 61 … … 75 77 /*static*/ QuestManager & QuestManager::getInstance() 76 78 { 77 if(singletonRef_s == NULL) 78 { 79 singletonRef_s = new QuestManager(); 80 } 79 assert(singletonRef_s); 81 80 return *singletonRef_s; 82 81 } -
code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.h
r2785 r2786 53 53 class _OrxonoxExport QuestManager : public BaseObject 54 54 { 55 56 protected: 55 public: 57 56 QuestManager(); 58 59 public:60 57 virtual ~QuestManager(); 61 58
Note: See TracChangeset
for help on using the changeset viewer.