Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2009, 3:38:22 PM (15 years ago)
Author:
erwin
Message:

added some error checking

File:
1 edited

Legend:

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

    r2980 r2982  
    7878                delete this->boostBlur_;
    7979        }
     80
     81        if(this->sound_ != NULL)
     82            delete this->sound_;
    8083    }
    8184
     
    222225    {
    223226        this->ship_ = ship;
    224         this->sound_->attachToEntity(ship);
     227
     228        if(this->sound_ != NULL)
     229            this->sound_->attachToEntity(ship);
    225230
    226231        if (ship)
Note: See TracChangeset for help on using the changeset viewer.