mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
And fix build_struct for built-in struct types.
The previous fix broke builtin structs (eg, @param). Calling find_type() for built-in structs has proven to be a bad idea :)
This commit is contained in:
parent
a19b7ec8f9
commit
e0d61705b4
1 changed files with 2 additions and 1 deletions
|
@ -129,6 +129,7 @@ build_struct (int su, symbol_t *tag, symtab_t *symtab, type_t *type)
|
|||
symtab->size = size;
|
||||
}
|
||||
}
|
||||
if (!type)
|
||||
sym->type = find_type (sym->type); // checks the tag, not the symtab
|
||||
sym->type->t.symtab = symtab;
|
||||
return sym;
|
||||
|
|
Loading…
Reference in a new issue