mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Use the correct type object in emit_struct().
This commit is contained in:
parent
59a683d39e
commit
29c1f7ac03
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ emit_structure (const char *name, int su, struct_def_t *defs, type_t *type,
|
|||
if (!type) {
|
||||
memset (&new, 0, sizeof (new));
|
||||
type = &new;
|
||||
make_structure (0, su, defs, type);
|
||||
type = make_structure (0, su, defs, type)->type;
|
||||
}
|
||||
if (!is_struct (type) || (su == 's' && type->ty != ty_struct)
|
||||
|| (su == 'u' && type->ty != ty_union))
|
||||
|
|
Loading…
Reference in a new issue