From cdcf1a71ea725b1043ffffe67a842b4916e52fc5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 31 Mar 2022 02:48:01 +0900 Subject: [PATCH] [gamecode] use correct void for global_string It seems gcc is a little fast and loose with 0 as a null vector. --- libs/gamecode/pr_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gamecode/pr_debug.c b/libs/gamecode/pr_debug.c index 3df6ba2a8..61016e371 100644 --- a/libs/gamecode/pr_debug.c +++ b/libs/gamecode/pr_debug.c @@ -1641,7 +1641,8 @@ PR_PrintStatement (progs_t *pr, dstatement_t *s, int contents) break; case 'V': opval += pr->pr_bases[opreg]; - str = global_string (&data, opval, ev_void, + optype = &res->void_type; + str = global_string (&data, opval, optype, contents & 1); break; case 'G':