Changeset 7552 for code/trunk/src/modules/questsystem/QuestManager.cc
- Timestamp:
- Oct 17, 2010, 10:50:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/QuestManager.cc
r7456 r7552 100 100 bool QuestManager::registerQuest(Quest* quest) 101 101 { 102 //TODO: Replace with assert. 103 if(quest == NULL) // Doh! Just as if there were actual quests behind NULL-pointers. 104 { 105 COUT(2) << "Registration of Quest in QuestManager failed, because inserted Quest-pointer was NULL." << std::endl; 106 return false; 107 } 102 assert(quest); 108 103 109 104 std::pair<std::map<std::string, Quest*>::iterator,bool> result; … … 143 138 bool QuestManager::registerHint(QuestHint* hint) 144 139 { 145 //TODO: Replace with assert. 146 if(hint == NULL) // Still not liking NULL-pointers. 147 { 148 COUT(2) << "Registration of QuestHint in QuestManager failed, because inserted QuestHint-pointer was NULL." << std::endl; 149 return false; 150 } 140 assert(hint); 151 141 152 142 std::pair<std::map<std::string, QuestHint*>::iterator,bool> result;
Note: See TracChangeset
for help on using the changeset viewer.