mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
look for the .this field but don't complain if not found
This commit is contained in:
parent
b3adadc347
commit
55fcead77c
2 changed files with 2 additions and 0 deletions
|
@ -374,6 +374,7 @@ struct progs_s {
|
|||
int nextthink;
|
||||
int frame;
|
||||
int think;
|
||||
int this;
|
||||
} fields;
|
||||
};
|
||||
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue