From: havoc Date: Fri, 20 Apr 2018 05:59:25 +0000 (+0000) Subject: Fix a prvm_int_t variable that was being passed directly to printf. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=33a718ecc3619f6e4fb485c68a73f9b118473027;p=xonotic%2Fdarkplaces.git 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 --- 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;