Changeset 7626 for code/branches/releasetodo/src/orxonox/LevelManager.cc
- Timestamp:
- Nov 6, 2010, 9:52:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/releasetodo/src/orxonox/LevelManager.cc
r7625 r7626 134 134 this->updateAvailableLevelList(); 135 135 136 COUT(0) << "Number of Levels: " << this->infos_.size() << std::endl;137 138 136 return this->availableLevels_.size(); 139 137 } 140 138 141 const std::string&LevelManager::getAvailableLevelListItem(unsigned int index) const139 LevelInfoItem* LevelManager::getAvailableLevelListItem(unsigned int index) const 142 140 { 143 141 if (index >= this->availableLevels_.size()) 144 return BLANKSTRING;142 return NULL; 145 143 else 146 144 { 147 145 std::map<std::string, LevelInfoItem*>::const_iterator it = this->infos_.find(this->availableLevels_[index]); 148 assert(it->second); 149 return it->second->getName(); 146 return it->second; 150 147 } 151 148 } … … 172 169 { 173 170 LevelInfoItem* info = item->copy(); 174 COUT(0) << "BUUUUUUUUUH: " << info->getName() << " | " << info->getXMLFilename() << " | " << it->substr(0, pos) << std::endl;175 171 if(info->getXMLFilename() == *it) 176 172 {
Note: See TracChangeset
for help on using the changeset viewer.