Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4356 in orxonox.OLD for orxonox/trunk/src/util


Ignore:
Timestamp:
May 28, 2005, 10:59:32 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed an error in the resource manager, when a texture could not be loaded it still returned a pointer into nothingness.
This is fixed

File:
1 edited

Legend:

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

    r4341 r4356  
    220220      tmpResource->type = type;
    221221      tmpResource->prio = prio;
     222      tmpResource->pointer = NULL;
    222223      tmpResource->name = new char[strlen(fileName)+1];
    223224      strcpy(tmpResource->name, fileName);
     
    323324          break;
    324325        }
    325       this->resourceList->add(tmpResource);
     326      if (tmpResource->pointer)
     327        this->resourceList->add(tmpResource);
    326328      delete []fullName;
    327329    }
Note: See TracChangeset for help on using the changeset viewer.