Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:25:03 PM (15 years ago)
Author:
landauf
Message:

replaced delete with destroy() in orxonox

Location:
code/branches/core5/src/orxonox/items
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/items/Engine.cc

    r5738 r5801  
    7979
    8080            if (this->boostBlur_)
    81                 delete this->boostBlur_;
     81                this->boostBlur_->destroy();
    8282
    8383            if(this->sound_ != NULL)
     
    237237            if (this->boostBlur_)
    238238            {
    239                 delete this->boostBlur_;
     239                this->boostBlur_->destroy();
    240240                this->boostBlur_ = 0;
    241241            }
  • code/branches/core5/src/orxonox/items/MultiStateEngine.cc

    r5738 r5801  
    6060            // We have no ship, so the effects are not attached and won't be destroyed automatically
    6161            for (std::list<WorldEntity*>::const_iterator it = this->activeEffects_.begin(); it != this->activeEffects_.end(); ++it)
    62                 delete (*it);
     62                (*it)->destroy();
    6363            for (std::list<WorldEntity*>::const_iterator it = this->forwardEffects_.begin(); it != this->forwardEffects_.end(); ++it)
    64                 delete (*it);
     64                (*it)->destroy();
    6565            for (std::list<WorldEntity*>::const_iterator it = this->boostEffects_.begin(); it != this->boostEffects_.end(); ++it)
    66                 delete (*it);
     66                (*it)->destroy();
    6767            for (std::list<WorldEntity*>::const_iterator it = this->brakeEffects_.begin(); it != this->brakeEffects_.end(); ++it)
    68                 delete (*it);
     68                (*it)->destroy();
    6969        }
    7070    }
Note: See TracChangeset for help on using the changeset viewer.