diff --git a/libs/gamecode/engine/pr_debug.c b/libs/gamecode/engine/pr_debug.c index 7efd06a56..3dac2032f 100644 --- a/libs/gamecode/engine/pr_debug.c +++ b/libs/gamecode/engine/pr_debug.c @@ -698,7 +698,7 @@ PR_PrintStatement (progs_t *pr, dstatement_t *s, int contents) static void dump_frame (progs_t *pr, prstack_t *frame) { - dfunction_t *f = frame->f->descriptor; + dfunction_t *f = frame->f ? frame->f->descriptor : 0; if (!f) { Sys_Printf ("\n");