Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2005, 8:22:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: segfault-prevention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc

    r4332 r4336  
    4242ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type)
    4343{
    44    this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
     44  this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
    4545  this->material = NULL;
    4646  this->name = NULL;
     
    123123
    124124  //  glID[0] = glGenLists(count);
    125   if (material)
    126     delete material;
     125  if (this->material)
     126    delete this->material;
    127127  material = NULL;
    128128
    129   if (particleType == PARTICLE_SPRITE)
    130     {
    131       material = new Material("transperencyMap");
    132       material->setDiffuseMap("pictures/radialTransparency.png");
     129  if (this->particleType == PARTICLE_SPRITE)
     130    {
     131      this->material = new Material("transperencyMap");
     132      this->material->setDiffuseMap("pictures/radialTransparency.png");
    133133      //  material->setTransparency(.5);
    134134    }
Note: See TracChangeset for help on using the changeset viewer.