Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2008, 3:46:17 AM (16 years ago)
Author:
landauf
Message:

some adjustments to prevent startup crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/orxonox/objects/Projectile.cc

    r1574 r1584  
    7575        SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second");
    7676
    77         this->setVelocity(this->owner_->getInitialDir() * this->speed_);
     77        if (this->owner_)
     78            this->setVelocity(this->owner_->getInitialDir() * this->speed_);
    7879    }
    7980
Note: See TracChangeset for help on using the changeset viewer.