[gamecode] Use adjusted vector string for sscanf

There's not much point in converting commas to spaces if the result
isn't used. Fixes several malformed vector errors in ad_tears.
This commit is contained in:
Bill Currie 2022-08-19 18:59:51 +09:00
parent 784af2bab2
commit 41a6ea3534

View file

@ -240,7 +240,7 @@ ED_ParseEpair (progs_t *pr, pr_type_t *base, pr_def_t *key, const char *s)
*v = ' ';
}
}
if (sscanf (s, "%f %f %f", VectorExpandAddr (vec)) != 3) {
if (sscanf (str, "%f %f %f", VectorExpandAddr (vec)) != 3) {
Sys_Printf ("Malformed vector %s\n", s);
}
VectorCopy (vec, PR_PTR (vector, d));