Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/gameengine/Physics/Sumo/SumoPhysicsController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp b/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp
index 8638c0a610a..87513f1a18c 100644
--- a/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp
+++ b/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp
@@ -78,7 +78,7 @@ float SumoPhysicsController::getMass()
if (m_sumoObj)
{
const SM_ShapeProps *shapeprops = m_sumoObj->getShapeProps();
- return shapeprops->m_mass;
+ if(shapeprops!=NULL) return shapeprops->m_mass;
}
return 0.f;
}