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:
Bill Currie 2011-03-06 15:41:15 +09:00
parent c4e9a45d91
commit 8712d30d1a

View file

@ -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;