Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6817


Ignore:
Timestamp:
May 2, 2010, 9:55:23 PM (14 years ago)
Author:
gnadler
Message:

made a mistake in previous update, but still not working…

Location:
code/branches/rocket/src/modules/weapons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/modules/weapons/RocketController.cc

    r6815 r6817  
    7272        RocketController::~RocketController() {
    7373                COUT(0)<< "RocketController destroyed\n";
    74                 delete this;
    75 
    7674        }
    7775
  • code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc

    r6816 r6817  
    5959        this->bDestroy_ = false;
    6060        this->lifetime_ = 100;
    61                 this->controller_=null;
    6261                COUT(0)<< "simplerocket constructed\n";
    6362                //this->camera_ = null;
     
    106105    {
    107106                COUT(0)<< "simplerocket destroyed\n";
    108                 if (this->controller_) delete this->controller_;
    109     }
     107                if (this->hasLocalController()) delete this->getController();
     108        }
    110109
    111110    /**
Note: See TracChangeset for help on using the changeset viewer.