- Timestamp:
- Mar 30, 2005, 12:46:16 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/util/resource_manager.cc
r3660 r3665 253 253 else 254 254 { 255 PRINTF(4)("not loading cached resource %s\n", tmpResource->name); 255 256 tmpResource->count++; 256 257 if(tmpResource->prio < prio) … … 282 283 bool ResourceManager::unload(Resource* resource, ResourcePriority prio) 283 284 { 284 resource->count--; 285 if (resource->count > 0) 286 resource->count--; 285 287 if (resource->prio <= prio) 286 288 { … … 358 360 while (enumRes) 359 361 { 360 if (pointer == enumRes->pointer) ;362 if (pointer == enumRes->pointer) 361 363 return enumRes; 362 364 enumRes = resourceList->nextElement();
Note: See TracChangeset
for help on using the changeset viewer.