From 4c4421bc4ecf21782de906917b5e0f2e770d66ee Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 19 Aug 2009 06:20:31 +0000 Subject: [PATCH] fix typo in 9126 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9128 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_edict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prvm_edict.c b/prvm_edict.c index fbf632ed..718ac55a 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1773,7 +1773,7 @@ void PRVM_LoadProgs (const char * filename, int numrequiredfunc, char **required prog->functions[i].numparms = LittleLong (dfunctions[i].numparms); prog->functions[i].locals = LittleLong (dfunctions[i].locals); memcpy(prog->functions[i].parm_size, dfunctions[i].parm_size, sizeof(dfunctions[i].parm_size)); - if(prog->functions[i]->first_statement < 0 || prog->functions[i]->first_statement >= prog->progs->numstatements) + if(prog->functions[i].first_statement < 0 || prog->functions[i].first_statement >= prog->progs->numstatements) PRVM_ERROR("PRVM_LoadProgs: out of bounds function statement (function %d) in %s", i, PRVM_NAME); // TODO bounds check parm_start, s_name, s_file, numparms, locals, parm_size } -- 2.39.2