mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +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 nextthink;
|
||||||
int frame;
|
int frame;
|
||||||
int think;
|
int think;
|
||||||
|
int this;
|
||||||
} fields;
|
} fields;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -913,6 +913,7 @@ PR_InitRuntime (progs_t *pr)
|
||||||
pr->classes = Hash_NewTable (1021, class_get_key, 0, pr);
|
pr->classes = Hash_NewTable (1021, class_get_key, 0, pr);
|
||||||
else
|
else
|
||||||
Hash_FlushTable (pr->classes);
|
Hash_FlushTable (pr->classes);
|
||||||
|
pr->fields.this = ED_GetFieldIndex (pr, ".this");
|
||||||
for (fnum = 0; fnum < pr->progs->numfunctions; fnum++) {
|
for (fnum = 0; fnum < pr->progs->numfunctions; fnum++) {
|
||||||
if (strequal (PR_GetString (pr, pr->pr_functions[fnum].s_name),
|
if (strequal (PR_GetString (pr, pr->pr_functions[fnum].s_name),
|
||||||
".ctor")) {
|
".ctor")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue