From 681950cf26ca5c5c2a8d689fe6bda64d567aff79 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 30 Jan 2002 22:14:13 +0000 Subject: [PATCH] print [val] for pointers --- libs/gamecode/engine/pr_edict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gamecode/engine/pr_edict.c b/libs/gamecode/engine/pr_edict.c index 26ddbdd6b..9d566b24a 100644 --- a/libs/gamecode/engine/pr_edict.c +++ b/libs/gamecode/engine/pr_edict.c @@ -264,7 +264,7 @@ PR_ValueString (progs_t * pr, etype_t type, pr_type_t *val) val->vector_var[2]); break; case ev_pointer: - strcpy (line, "pointer"); + snprintf (line, sizeof (line), "[%d]", val->integer_var); break; case ev_quaternion: snprintf (line, sizeof (line), "'%5.1f %5.1f %5.1f %5.1f'",