From e1c927d621d971cea62e808986c46b41b12a50ef Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 5 Dec 2004 08:18:14 +0000 Subject: [PATCH] Tiny fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@557 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/qvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/qvm.c b/engine/common/qvm.c index 73a4a8e5c..54b5f535e 100644 --- a/engine/common/qvm.c +++ b/engine/common/qvm.c @@ -573,7 +573,7 @@ static void inline QVM_Return(qvm_t *vm, long size) if(vm->bp>vm->len_ds+vm->len_ss/2) 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. Sys_Error("VM run time error: program returned to hyperspace\n"); if(fp[1]<0)