Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skysphere.cc

    r3536 r3544  
    5757Skysphere::~Skysphere()
    5858{
    59   this->destroy();
    60 }
    61 
    62 void Skysphere::destroy(void)
    63 {
    64 
    6559  PRINTF(3)("Deleting the SkySphere\n");
    66   delete skyMaterial;
    67   free(sphereObj);
    68  
    69   static_cast<WorldEntity*>(this)->destroy();
     60  delete this->skyMaterial;
     61  free(this->sphereObj);
    7062}
    7163
Note: See TracChangeset for help on using the changeset viewer.