From: divverent Date: Tue, 25 Oct 2011 20:39:24 +0000 (+0000) Subject: fix a bug regarding entity reuse X-Git-Tag: xonotic-v0.6.0~163^2~82 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=882620de08dc5d255423803ee520471627c35456;p=xonotic%2Fdarkplaces.git fix a bug regarding entity reuse git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11475 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index c236447e..554ecbe7 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1901,7 +1901,8 @@ void PRVM_Prog_Load(prvm_prog_t *prog, const char * filename, int numrequiredfun prog->error_cmd("PRVM_LoadProgs: couldn't load %s for %s", filename, prog->name); // TODO bounds check header fields (e.g. numstatements), they must never go behind end of file - prog->profiletime = prog->starttime = Sys_DirtyTime(); + prog->profiletime = Sys_DirtyTime(); + prog->starttime = realtime; Con_DPrintf("%s programs occupy %iK.\n", prog->name, (int)(filesize/1024));