mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
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:
parent
aad04efe25
commit
6203d450eb
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue