X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=prvm_edict.c;h=8633fdfedf4cb08ffcd5ec56628bbd67f21bda97;hb=ff2b13639f3e5b83386155944f4d1efee3582ed2;hp=79c937a492767aa72088748435fe4536a8b49f30;hpb=6ad90d1388ee03427548282e23fcd5bdba03b83a;p=xonotic%2Fdarkplaces.git 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;