Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2008, 3:42:38 PM (17 years ago)
Author:
scheusso
Message:

Another bug, that caused a segfault in server mode, removed
####################################################################
please do not use local pointers for owner (as in Projectile) - use
objectID instead
####################################################################

File:
1 edited

Legend:

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

    r1563 r1576  
    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.