implement jumpb correctly

This commit is contained in:
Bill Currie 2003-08-22 19:48:36 +00:00
parent b38486d405
commit 98beb38540

View file

@ -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