Reverted to C style for loop initialization

This commit is contained in:
Robert Osfield 2016-06-21 08:14:00 +01:00
parent 51b246d63a
commit 7fedcad075

View File

@ -314,8 +314,15 @@ track_eval_linear(Lib3dsTrack *track, float *value, float t) {
assert(track);
if (!track->nkeys) {
if (track->type==LIB3DS_TRACK_FLOAT) { *value = 0.0f; }
else { for (int i = 0; i < track->type; ++i) value[i] = 0.0f; }
if (track->type==LIB3DS_TRACK_FLOAT)
{
*value = 0.0f;
}
else
{
int i;
for (i = 0; i < track->type; ++i) value[i] = 0.0f;
}
return;
}