Changeset 10270 for code/trunk/src
- Timestamp:
- Feb 14, 2015, 10:49:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/pawns/ModularSpaceShip.cc
r10262 r10270 159 159 void ModularSpaceShip::damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) 160 160 { 161 if ( this->getPartOfEntity((StaticEntity*)(cs->getUserPointer())) != NULL)161 if (cs != NULL && this->getPartOfEntity((StaticEntity*)(cs->getUserPointer())) != NULL) 162 162 this->getPartOfEntity((StaticEntity*)(cs->getUserPointer()))->handleHit(damage, healthdamage, shielddamage, originator); 163 163 else
Note: See TracChangeset
for help on using the changeset viewer.