Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6863 in orxonox.OLD for trunk/src/world_entities/skybox.cc


Ignore:
Timestamp:
Jan 30, 2006, 11:42:44 AM (18 years ago)
Author:
patrick
Message:

trunk: fixed the segfault problem, when restarting world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/skybox.cc

    r6860 r6863  
    105105  for (int i = 0; i < 6; i++)
    106106  {
    107     delete this->material[i];
    108     delete this->cubeTexture[i];
     107    if( this->material[i])
     108      delete this->material[i];
     109//     if( this->cubeTexture[i])
     110//       delete this->cubeTexture[i];
    109111  }
    110112}
Note: See TracChangeset for help on using the changeset viewer.