Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6863 in orxonox.OLD


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

trunk: fixed the segfault problem, when restarting world

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world_data.cc

    r6834 r6863  
    266266    delete this->objectManager;
    267267  }
     268
    268269  if(State::getSkyBox())
    269270    State::setSkyBox(NULL);
     271
     272  glmis = NULL;
     273  localCamera = NULL;
     274  localPlayer = NULL;
     275  sky = NULL;
     276  terrain = NULL;
     277  music = NULL;
     278  objectManager = NULL;
    270279}
    271280
  • 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.