Changeset 7999 for code/branches
- Timestamp:
- Feb 28, 2011, 5:05:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/orxonox/LevelManager.cc
r7998 r7999 268 268 269 269 // We don't need the loaded stuff anymore 270 Loader::unload(&file , mask);270 Loader::unload(&file); 271 271 272 272 if(info == NULL) … … 279 279 // Warn about multiple items so that it gets fixed quickly 280 280 if(availableLevels_.find(info) != availableLevels_.end()) 281 { 281 282 COUT(2) << "Warning: Multiple levels with name '" << info->getName() << "' found!" << std::endl; 282 283 this->availableLevels_.insert(info); 283 // Delete LevelInfoItem to avoid a dangling pointer 284 delete info; 285 } 286 else 287 this->availableLevels_.insert(info); 284 288 } 285 289 }
Note: See TracChangeset
for help on using the changeset viewer.