mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
Tiny fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@557 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b523ee04c7
commit
e1c927d621
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue