correct misc warnings

This commit is contained in:
2011-07-26 13:33:04 +00:00
parent 40353fe0d8
commit ca293c835f
5 changed files with 10 additions and 6 deletions

View File

@@ -1944,6 +1944,11 @@ static void applyGrid(TransInfo *t, float *val, int max_index, float fac[3], Gea
int i;
float asp[3] = {1.0f, 1.0f, 1.0f}; // TODO: Remove hard coded limit here (3)
if(max_index > 3) {
printf("applyGrid: invalid index %d, clamping\n", max_index);
max_index= 3;
}
// Early bailing out if no need to snap
if (fac[action] == 0.0f)
return;