From fea382d1d90148ce98076a2f8d5e5fb092bb7326 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 15 Sep 2003 21:13:13 +0000 Subject: [PATCH] fix an accounting error --- libs/gamecode/engine/pr_exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/gamecode/engine/pr_exec.c b/libs/gamecode/engine/pr_exec.c index 10d94f7f3..bce24ec03 100644 --- a/libs/gamecode/engine/pr_exec.c +++ b/libs/gamecode/engine/pr_exec.c @@ -696,6 +696,8 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum) else if (&R_INT (pr) != &OPA.integer_var) memcpy (&R_INT (pr), &OPA, pr->pr_param_size * sizeof (OPA)); + pr->pr_xfunction->profile += profile - startprofile; + startprofile = profile; PR_LeaveFunction (pr); st = pr->pr_statements + pr->pr_xstatement; if (pr->pr_depth == exitdepth) {