From bbb66e13f82db4d21adc30ad610e42f530b89cf2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 4 May 2022 22:37:52 +0900 Subject: [PATCH] [nq] Fix incorrect handling of argv in PF_WriteBytes This fixes an illegible server message error on going through a teleport in the start map (how I noticed the problem). Funnily enough, I had spotted the mistake when editing the qw version, but forgot to correct the nq version. --- nq/source/sv_pr_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nq/source/sv_pr_cmds.c b/nq/source/sv_pr_cmds.c index b133b0bf4..b555708ff 100644 --- a/nq/source/sv_pr_cmds.c +++ b/nq/source/sv_pr_cmds.c @@ -1139,7 +1139,7 @@ PF_WriteBytes (progs_t *pr, void *data) } } for (i = 0; i < argc; i++) { - p = PR_PTR (float, &argv[i]); + p = PR_PTR (float, argv[i]); MSG_WriteByte (msg, p); } }