git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@557 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-12-05 08:18:14 +00:00
parent b523ee04c7
commit e1c927d621

View file

@ -573,7 +573,7 @@ static void inline QVM_Return(qvm_t *vm, long size)
if(vm->bp>vm->len_ds+vm->len_ss/2) if(vm->bp>vm->len_ds+vm->len_ss/2)
Sys_Error("VM run time error: freed too much stack\n"); Sys_Error("VM run time error: freed too much stack\n");
if(fp[1]>vm->len_cs*2) if(fp[1]>=vm->len_cs*2)
if (vm->cs+fp[1]) //this being false causes the program to quit. if (vm->cs+fp[1]) //this being false causes the program to quit.
Sys_Error("VM run time error: program returned to hyperspace\n"); Sys_Error("VM run time error: program returned to hyperspace\n");
if(fp[1]<0) if(fp[1]<0)