From 41a6ea35343d6c53efa8dc3b39a9e2fb9c3d417d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 19 Aug 2022 18:59:51 +0900 Subject: [PATCH] [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. --- libs/gamecode/pr_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gamecode/pr_parse.c b/libs/gamecode/pr_parse.c index 6f7a032ed..f94f56c62 100644 --- a/libs/gamecode/pr_parse.c +++ b/libs/gamecode/pr_parse.c @@ -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));