function now accepts PR_CURRENT

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

View file

@ -102,7 +102,7 @@ void PR_Configure (progfuncs_t *progfuncs, void *mem, int mem_size, int max_prog
//three conditions. //three conditions.
//mem + size uses new hunk space //mem + size uses new hunk space
//size>=0 uses previous 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 == NULL)
{ {
if (mem_size < 0) if (mem_size < 0)
@ -199,6 +199,8 @@ eval_t *PR_FindGlobal(progfuncs_t *progfuncs, char *globname, progsnum_t pnum)
{ {
ddef16_t *var16; ddef16_t *var16;
ddef32_t *var32; ddef32_t *var32;
if (pnum == PR_CURRENT)
pnum = pr_typecurrent;
switch(pr_progstate[pnum].intsize) switch(pr_progstate[pnum].intsize)
{ {
case 16: case 16: