summaryrefslogtreecommitdiff
path: root/src/lib/ephysics
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-01 19:25:39 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-01 19:40:47 +0900
commit1670fa27d9d5e6f0eebcc214e55262397c401c09 (patch)
tree3061398bab2820a34d1a231a4eef8d3f6ae5908a /src/lib/ephysics
parent719ecf18e85f7214d0658033b38338fac6820a65 (diff)
ephysics - Dereference after null check - fix
fix CID 1039416
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 3471938..c649506 100644
--- a/src/lib/ephysics/ephysics_body.cpp
+++ b/src/lib/ephysics/ephysics_body.cpp
@@ -2972,7 +2972,7 @@ EAPI EPhysics_Body *
2972ephysics_body_soft_box_add(EPhysics_World *world) 2972ephysics_body_soft_box_add(EPhysics_World *world)
2973{ 2973{
2974 EPhysics_Body *body; 2974 EPhysics_Body *body;
2975 EPhysics_Body_Face_Slice *face_slice; 2975 EPhysics_Body_Face_Slice *face_slice = NULL;
2976 btCollisionShape *shape; 2976 btCollisionShape *shape;
2977 btSoftBodyWorldInfo *world_info; 2977 btSoftBodyWorldInfo *world_info;
2978 btSoftBody *soft_body; 2978 btSoftBody *soft_body;
@@ -3046,7 +3046,7 @@ ephysics_body_soft_box_add(EPhysics_World *world)
3046 3046
3047no_slices: 3047no_slices:
3048no_face_slice: 3048no_face_slice:
3049 _ephysics_body_face_slice_del(face_slice); 3049 if (face_slice) _ephysics_body_face_slice_del(face_slice);
3050no_deform: 3050no_deform:
3051 ephysics_world_body_del(world, body); 3051 ephysics_world_body_del(world, body);
3052no_body: 3052no_body: