- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r10624 r10765 72 72 it->first->destroy(); 73 73 if (this->collisionShape_ == it->second) 74 this->collisionShape_ = NULL; // don't destroy it twice74 this->collisionShape_ = nullptr; // don't destroy it twice 75 75 } 76 76 77 77 delete this->compoundShape_; 78 78 if (this->collisionShape_ == this->compoundShape_) 79 this->collisionShape_ = NULL; // don't destroy it twice79 this->collisionShape_ = nullptr; // don't destroy it twice 80 80 } 81 81 } … … 96 96 void CompoundCollisionShape::attach(CollisionShape* shape) 97 97 { 98 // If either the input shape is NULLor we try to attach the CollisionShape to itself.98 // If either the input shape is nullptr or we try to attach the CollisionShape to itself. 99 99 if (!shape || static_cast<CollisionShape*>(this) == shape) 100 100 return;
Note: See TracChangeset
for help on using the changeset viewer.