From 4412dd487b9fdb81aa97844cce69315994519cef Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 6 Jun 2005 03:53:13 +0000 Subject: [PATCH] fixed a PRVM_Crash crash when progs was NULL git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5400 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_exec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prvm_exec.c b/prvm_exec.c index 8dcd878e..4c6ae452 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -266,6 +266,9 @@ void PRVM_PrintState(void) void PRVM_Crash() { + if (prog == NULL) + return; + if( prog->depth > 0 ) { Con_Printf("QuakeC crash report for %s:\n", PRVM_NAME); -- 2.39.2