- Timestamp:
- Mar 30, 2005, 9:38:44 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/util/resource_manager.cc
r3665 r3666 324 324 bool ResourceManager::unloadAllByPriority(ResourcePriority prio) 325 325 { 326 Resource* enumRes = resourceList->enumerate(); 326 327 tIterator<Resource>* iterator = resourceList->getIterator(); 328 //Resource* enumRes = resourceList->enumerate(); 329 Resource* enumRes = iterator->nextElement(); 327 330 while (enumRes) 328 331 { 329 332 if (enumRes->prio <= prio) 330 333 unload(enumRes, prio); 331 enumRes = resourceList->nextElement(); 332 } 334 //enumRes = resourceList->nextElement(); 335 enumRes = iterator->nextElement(); 336 } 337 delete iterator; 333 338 } 334 339
Note: See TracChangeset
for help on using the changeset viewer.