summaryrefslogtreecommitdiff
path: root/src/lib/ephysics
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:30:10 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:30:10 -0400
commit20b592cef7f231378f67e0f78d5670144b4d3693 (patch)
tree654a5f275f58ca0b68e5c960f22ad4e5225fc65a /src/lib/ephysics
parentc12008b4d0118232aca3f45e3e77137acef75078 (diff)
fix various trivial null derefs
Summary: CIDs 1401081, 1401044, 1400983, 1400960, 1400927, 1400799, 1396946, 1396944, 1383851, 1383847, 1382211, 1379921, 1379921 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10452
Diffstat (limited to 'src/lib/ephysics')
-rw-r--r--src/lib/ephysics/ephysics_body.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ephysics/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp
index 20b5804..02c7e8d 100644
--- a/src/lib/ephysics/ephysics_body.cpp
+++ b/src/lib/ephysics/ephysics_body.cpp
@@ -274,6 +274,7 @@ _ephysics_body_soft_body_slice_new(EPhysics_Body *body, double delta, double max
274 faces = body->soft_body->m_faces; 274 faces = body->soft_body->m_faces;
275 275
276 slice->index = index; 276 slice->index = index;
277 if (!faces.size()) return slice;
277 slice->p[0].x = _ephysics_body_soft_body_slice_calc( 278 slice->p[0].x = _ephysics_body_soft_body_slice_calc(
278 faces[slice->index].m_n[0]->m_x.x(), delta, max); 279 faces[slice->index].m_n[0]->m_x.x(), delta, max);
279 slice->p[0].y = 1 - _ephysics_body_soft_body_slice_calc( 280 slice->p[0].y = 1 - _ephysics_body_soft_body_slice_calc(