]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix typo in 9126
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Aug 2009 06:20:31 +0000 (06:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Aug 2009 06:20:31 +0000 (06:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9128 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index fbf632ed433f9766dbaf31a3e04abe6818d0cf96..718ac55aaf931a39be3e6f3c873114651d52d712 100644 (file)
@@ -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
        }