From: divverent Date: Thu, 3 Nov 2011 08:57:42 +0000 (+0000) Subject: fix segfault in prvm_printfunction X-Git-Tag: xonotic-v0.6.0~163^2~36 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=31b56153447af9209e7e4fba607b6ec574eddf23;p=xonotic%2Fdarkplaces.git fix segfault in prvm_printfunction git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11521 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_exec.c b/prvm_exec.c index d1e37f76..49142b72 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -176,6 +176,7 @@ void PRVM_PrintFunctionStatements (prvm_prog_t *prog, const char *name) // now print the range of statements Con_Printf("%s progs: disassembly of function %s (statements %i-%i, locals %i-%i):\n", prog->name, name, firststatement, endstatement, func->parm_start, func->parm_start + func->locals - 1); + prog->xfunction = func; for (i = firststatement;i < endstatement;i++) { PRVM_PrintStatement(prog, prog->statements + i);