]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_exec.c
Changed prvm_ed_loadfromfile - it isnt really compatible with the old vm anymore...
[xonotic/darkplaces.git] / prvm_exec.c
index adaf7967eb16f057997a96d779a225966580a3aa..7ba8a1b2d1446e651b449e8b3d1eb5f3908a48a5 100644 (file)
@@ -233,7 +233,8 @@ void PRVM_Profile_f (void)
 void PRVM_CrashAll()
 {
        int i;
-       PRVM_Begin; 
+       prvm_prog_t *oldprog = prog;
+
        for(i = 0; i < PRVM_MAXPROGS; i++)
        {
                if(!PRVM_ProgLoaded(i))
@@ -241,7 +242,8 @@ void PRVM_CrashAll()
                PRVM_SetProg(i);
                PRVM_Crash();
        }
-       PRVM_End;
+       
+       prog = oldprog;
 }
 
 void PRVM_Crash()