Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3665 in orxonox.OLD for orxonox/trunk/src/lib/util


Ignore:
Timestamp:
Mar 30, 2005, 12:46:16 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: caching better implemented, now there should be no more seg-fault
@patrick: new List-iterator did not work → got segfault with it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/resource_manager.cc

    r3660 r3665  
    253253  else
    254254    {
     255      PRINTF(4)("not loading cached resource %s\n", tmpResource->name);
    255256      tmpResource->count++;
    256257      if(tmpResource->prio < prio)
     
    282283bool ResourceManager::unload(Resource* resource, ResourcePriority prio)
    283284{
    284   resource->count--;
     285  if (resource->count > 0)
     286    resource->count--;
    285287  if (resource->prio <= prio)
    286288    {
     
    358360  while (enumRes)
    359361    {
    360       if (pointer == enumRes->pointer);
     362      if (pointer == enumRes->pointer)
    361363        return enumRes;
    362364      enumRes = resourceList->nextElement();
Note: See TracChangeset for help on using the changeset viewer.