Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/particles/particle_fun.cc

    r4351 r4356  
    3636void Framework::moduleInit(int argc, char** argv)
    3737{
     38  verbose = 5;
     39
    3840  // Creating a Test Particle System
    3941  ParticleSystem* system = new ParticleSystem(100000, PINIT_PARTICLE_TYPE);
  • 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.