From deafeba37a914ccd3821e1056222149f06b5c3d1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 23 Nov 2004 00:23:25 +0000 Subject: [PATCH] function now accepts PR_CURRENT git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@506 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/initlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/qclib/initlib.c b/engine/qclib/initlib.c index d31d25e4d..d06b8af94 100644 --- a/engine/qclib/initlib.c +++ b/engine/qclib/initlib.c @@ -102,7 +102,7 @@ void PR_Configure (progfuncs_t *progfuncs, void *mem, int mem_size, int max_prog //three conditions. //mem + size uses new hunk space //size>=0 uses previous hunk space -//size < 0 uses memalloc for mem, then 'emulates' a hunk. +//size < 0 uses memalloc for mem, then emulates a hunk. if (mem == NULL) { if (mem_size < 0) @@ -199,6 +199,8 @@ eval_t *PR_FindGlobal(progfuncs_t *progfuncs, char *globname, progsnum_t pnum) { ddef16_t *var16; ddef32_t *var32; + if (pnum == PR_CURRENT) + pnum = pr_typecurrent; switch(pr_progstate[pnum].intsize) { case 16: