Added assert() to make it clear to Coverity that both prev and next won't be null

This commit is contained in:
Robert Osfield 2016-06-10 16:16:29 +01:00
parent 40725ad707
commit 615114c900

View File

@ -112,6 +112,8 @@ rot_key_setup(Lib3dsKey *prev, Lib3dsKey *cur, Lib3dsKey *next, float a[4], floa
int i;
assert(cur);
assert(prev || next);
if (prev) {
if (cur->value[3] > LIB3DS_TWOPI - LIB3DS_EPSILON) {
lib3ds_quat_axis_angle(qm, cur->value, 0.0f);