From: havoc Date: Mon, 6 Jun 2005 03:53:13 +0000 (+0000) Subject: fixed a PRVM_Crash crash when progs was NULL X-Git-Tag: xonotic-v0.1.0preview~4782 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4412dd487b9fdb81aa97844cce69315994519cef;p=xonotic%2Fdarkplaces.git 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 --- 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);