From 33a718ecc3619f6e4fb485c68a73f9b118473027 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 20 Apr 2018 05:59:25 +0000 Subject: [PATCH] Fix a prvm_int_t variable that was being passed directly to printf. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12400 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_edict.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prvm_edict.c b/prvm_edict.c index 79c937a4..8633fdfe 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -521,7 +521,8 @@ char *PRVM_UglyValueString (prvm_prog_t *prog, etype_t type, prvm_eval_t *val, c line[i] = '\0'; break; case ev_entity: - dpsnprintf (line, linelength, "%i", val->edict); + i = val->edict; + dpsnprintf (line, linelength, "%i", i); break; case ev_function: f = prog->functions + val->function; -- 2.39.2