summaryrefslogtreecommitdiff
path: root/src/lib/ephysics
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 11:28:25 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 11:28:25 +0900
commitdb781761514d7f194f10e4cd4757717d69f16b7a (patch)
treeb4231c648b701420b4a9c8d8ce03dbec093b3f0e /src/lib/ephysics
parent0c99a2f156e279018ab3ebe5a6f499bcd280dc6e (diff)
ephysics - fix uninitialized var
fixes CID 1232735
Diffstat (limited to 'src/lib/ephysics')
-rw-r--r--src/lib/ephysics/ephysics_body.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ephysics/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp
index 9e1e87c..3471938 100644
--- a/src/lib/ephysics/ephysics_body.cpp
+++ b/src/lib/ephysics/ephysics_body.cpp
@@ -1001,7 +1001,7 @@ _ephysics_body_soft_body_mass_set(EPhysics_Body *body, double mass)
1001{ 1001{
1002 int valid_nodes; 1002 int valid_nodes;
1003 btSoftBody::Node node; 1003 btSoftBody::Node node;
1004 double inverse_mass; 1004 double inverse_mass = 0.0;
1005 1005
1006 if (body->type == EPHYSICS_BODY_TYPE_SOFT) 1006 if (body->type == EPHYSICS_BODY_TYPE_SOFT)
1007 body->soft_body->setTotalMass(mass); 1007 body->soft_body->setTotalMass(mass);
@@ -1030,7 +1030,7 @@ _ephysics_body_soft_body_mass_set(EPhysics_Body *body, double mass)
1030 { 1030 {
1031 node = body->soft_body->m_nodes[i]; 1031 node = body->soft_body->m_nodes[i];
1032 if (node.m_im && !node.m_battach) 1032 if (node.m_im && !node.m_battach)
1033 node.m_im = inverse_mass; 1033 node.m_im = inverse_mass;
1034 } 1034 }
1035 } 1035 }
1036} 1036}