From 31b56153447af9209e7e4fba607b6ec574eddf23 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 3 Nov 2011 08:57:42 +0000 Subject: [PATCH] fix segfault in prvm_printfunction git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11521 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_exec.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2