From: havoc Date: Sun, 5 Aug 2012 23:24:06 +0000 (+0000) Subject: relax PRVM_EDICT_NUM error checking on saving a savegame so that X-Git-Tag: xonotic-v0.8.0~96^2~199 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c5664b1f0d364af4660151dc1e5d1b5962c3fbae;p=xonotic%2Fdarkplaces.git relax PRVM_EDICT_NUM error checking on saving a savegame so that honey.bsp can save game git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11839 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index 30a92618..4de128b2 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -512,7 +512,7 @@ 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", PRVM_NUM_FOR_EDICT(PRVM_PROG_TO_EDICT(val->edict))); + dpsnprintf (line, linelength, "%i", val->edict); break; case ev_function: f = prog->functions + val->function;