Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
[blender.git] / source / blender / blenkernel / intern / armature.c
index 8d86a3d6ad9932c38601aa73027cc62c8d51f038..aaa8e638ec9bc91aaaffd331e79b19185c4283d5 100644 (file)
@@ -753,6 +753,7 @@ void armature_deform_verts(Object *armOb, Object *target, DerivedMesh *dm,
                if(use_dverts || armature_def_nr >= 0) {
                        if(dm) dvert = dm->getVertData(dm, i, LAYERTYPE_MDEFORMVERT);
                        else if(i < target_totvert) dvert = dverts + i;
+                       else dvert = NULL;
                } else
                        dvert = NULL;