From 98beb38540f9365c78e0ff5ed43ce487dd7992fa Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 22 Aug 2003 19:48:36 +0000 Subject: [PATCH] implement jumpb correctly --- libs/gamecode/engine/pr_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gamecode/engine/pr_exec.c b/libs/gamecode/engine/pr_exec.c index 2f4ce27d9..0492ee8cf 100644 --- a/libs/gamecode/engine/pr_exec.c +++ b/libs/gamecode/engine/pr_exec.c @@ -649,7 +649,7 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum) break; case OP_JUMPB: //FIXME put bounds checking in - pointer = OPA.integer_var + OPB.integer_var; + pointer = st->a + OPB.integer_var; ptr = pr->pr_globals + pointer; pointer = ptr->integer_var; if (pr_boundscheck->int_val