diff --git a/tools/qfcc/source/struct.c b/tools/qfcc/source/struct.c index 4337a582e..c57967b47 100644 --- a/tools/qfcc/source/struct.c +++ b/tools/qfcc/source/struct.c @@ -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))