Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10318 for code/trunk


Ignore:
Timestamp:
Mar 15, 2015, 5:27:57 PM (10 years ago)
Author:
smerkli
Message:

fixed destructor (during class hierarchy initialization)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/gametypes/SpaceRaceController.cc

    r10262 r10318  
    338338    SpaceRaceController::~SpaceRaceController()
    339339    {
    340         for (int i =-1; i>virtualCheckPointIndex; i--)
    341         {
    342             delete findCheckpoint(i);
     340        if (this->isInitialized())
     341        {
     342            for (int i =-1; i>virtualCheckPointIndex; i--)
     343                delete findCheckpoint(i);
    343344        }
    344345    }
Note: See TracChangeset for help on using the changeset viewer.