look for the .this field but don't complain if not found

This commit is contained in:
Bill Currie 2002-05-31 17:21:38 +00:00
parent b3adadc347
commit 55fcead77c
2 changed files with 2 additions and 0 deletions

View file

@ -374,6 +374,7 @@ struct progs_s {
int nextthink;
int frame;
int think;
int this;
} fields;
};

View file

@ -913,6 +913,7 @@ PR_InitRuntime (progs_t *pr)
pr->classes = Hash_NewTable (1021, class_get_key, 0, pr);
else
Hash_FlushTable (pr->classes);
pr->fields.this = ED_GetFieldIndex (pr, ".this");
for (fnum = 0; fnum < pr->progs->numfunctions; fnum++) {
if (strequal (PR_GetString (pr, pr->pr_functions[fnum].s_name),
".ctor")) {