resture pr_xstatement on return from PR_ExecuteProgram so recursive calls

don't mangle things with the new semantics of builtin calls
This commit is contained in:
Bill Currie 2002-10-22 02:51:57 +00:00
parent aad04efe25
commit 6203d450eb

View file

@ -785,6 +785,7 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum)
memcpy (&pr->pr_globals[OFS_RETURN], &OPA, 3 * sizeof (OPA));
st = &pr->pr_statements[PR_LeaveFunction (pr)];
if (pr->pr_depth == exitdepth) {
pr->pr_xstatement = st - pr->pr_statements;
Sys_PopSignalHook ();
return; // all done
}