From 728047da7b12951c7e75df5ab1d8e249ad2f8731 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 21 Dec 2004 04:38:53 +0000 Subject: [PATCH] Small non-serious fix. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@672 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/qvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/common/qvm.c b/engine/common/qvm.c index 54b5f535e..a4067fab9 100644 --- a/engine/common/qvm.c +++ b/engine/common/qvm.c @@ -537,6 +537,8 @@ static void inline QVM_Call(qvm_t *vm, int addr) vm->sp[0]=(long)(vm->pc-vm->cs); // push pc /return address/ vm->pc=vm->cs+addr*2; + if (!vm->pc) + Sys_Error("VM run time error: program called the void\n"); } /*