[qfcc] Read float/double vector literals correctly

Wow, I thought that had been tested. I guess that not vary many vector
literals used fractional values.
This commit is contained in:
Bill Currie 2023-08-28 12:06:25 +09:00
parent 5b1ce309ef
commit 41e0483102

View file

@ -728,7 +728,7 @@ parse_float_vector (const char *token, int width)
case 3: case 3:
sscanf (token, "' %lf %lf %lf '%c", sscanf (token, "' %lf %lf %lf '%c",
&double_data.d[0], &double_data.d[1], &double_data.d[0], &double_data.d[1],
&double_data.d[1], &t); &double_data.d[2], &t);
type = (t == 'f' || t == 'F') ? &type_vec3 : &type_dvec3; type = (t == 'f' || t == 'F') ? &type_vec3 : &type_dvec3;
break; break;
case 2: case 2: