Small bugfix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@505 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-23 00:22:04 +00:00
parent 2f1329a1fe
commit 5372f5ba08

View file

@ -531,7 +531,7 @@ reeval:
else
{
i -= externs->numglobalbuiltins;
if (i > current_progstate->numbuiltins)
if (i >= current_progstate->numbuiltins)
{
if (newf->first_statement == -0x7fffffff)
((builtin_t)newf->profile) (progfuncs, (struct globalvars_s *)current_progstate->globals);
@ -572,8 +572,8 @@ reeval:
static char buffer[1024*1024*8];
int size = sizeof buffer;
progfuncs->save_ents(progfuncs, buffer, &size, 0);
}*/
}
*/
s = PR_LeaveFunction (progfuncs);
st = &pr_statements[s];
if (pr_depth == prinst->exitdepth)