Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 7, 2005, 3:27:46 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the vertices data and the obb trees now get deleted, in the resume at the end (Class_list) there are still a number of references, will track this down now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb.cc

    r4704 r4814  
    3232   this->halfLength = new float[3];
    3333   this->bCollided = false;
     34   this->vertices = NULL;
    3435}
    3536
     
    4142OBB::~OBB ()
    4243{
    43   // delete what has to be deleted here
    4444  delete [] this->axis;
    4545  delete [] this->halfLength;
     46
     47  if( this->vertices && !this->bOrigVertices)
     48  {
     49//     for(int i = 0; i < this->numOfVertices; i++)
     50//       delete [] this->vertices[i];
     51    delete this->vertices;
     52    this->vertices = NULL;
     53  }
    4654}
    4755
Note: See TracChangeset for help on using the changeset viewer.