]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed a PRVM_Crash crash when progs was NULL
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Jun 2005 03:53:13 +0000 (03:53 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Jun 2005 03:53:13 +0000 (03:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5400 d7cf8633-e32d-0410-b094-e92efae38249

prvm_exec.c

index 8dcd878ed161eb370f57094b78c34552d369b965..4c6ae4527201b44984476dd8d28bc64694b18550 100644 (file)
@@ -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);