Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2011, 4:38:07 PM (13 years ago)
Author:
rgrieder
Message:

Calling the destructor doesn't really take care of the memory deallocation :P
Also, fixed an MSCV warning with double→float.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/worldentities/pawns/SpaceShip.cc

    r8597 r8607  
    248248    void SpaceShip::rotatePitch(const Vector2& value)
    249249    {
    250         this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x*0.8);
     250        this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x*0.8f);
    251251
    252252        Pawn::rotatePitch(value);
     
    375375    {
    376376        for(unsigned int i=0; i<this->engineList_.size(); i++)
    377             this->engineList_[i]->~Engine();
     377            this->engineList_[i]->destroy();
    378378    }
    379379
Note: See TracChangeset for help on using the changeset viewer.