mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Make entity field defs static.
Entity field defs need to be static in order to avoid clashing with their field variables.
This commit is contained in:
parent
c4e9a45d91
commit
8712d30d1a
1 changed files with 1 additions and 1 deletions
|
@ -290,8 +290,8 @@ init_field_def (def_t *def)
|
|||
def_t *field_def;
|
||||
symbol_t *field_sym;
|
||||
|
||||
field_def = new_def (def->name, type, pr.entity_data, st_global);
|
||||
field_sym = new_symbol_type (def->name, type);
|
||||
field_def = new_def (def->name, type, pr.entity_data, st_static);
|
||||
field_sym->s.def = field_def;
|
||||
symtab_addsymbol (pr.entity_fields, field_sym);
|
||||
D_INT (def) = field_def->offset;
|
||||
|
|
Loading…
Reference in a new issue