]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix a prvm_int_t variable that was being passed directly to printf.
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 20 Apr 2018 05:59:25 +0000 (05:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 20 Apr 2018 05:59:25 +0000 (05:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12400 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 79c937a492767aa72088748435fe4536a8b49f30..8633fdfedf4cb08ffcd5ec56628bbd67f21bda97 100644 (file)
@@ -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;