mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Ensure type_ClassPtr is chained before it is used.
This commit is contained in:
parent
a7ae71efad
commit
cbfbc0b01a
1 changed files with 2 additions and 2 deletions
|
@ -246,6 +246,8 @@ init_classes (void)
|
|||
type_Class.ty = ty_class;
|
||||
type_Class.t.class = &class_Class;
|
||||
chain_type (&type_Class);
|
||||
chain_type (&type_ClassPtr);
|
||||
|
||||
sym = make_structure (0, 's', class_ivars, 0);
|
||||
class_Class.ivars = sym->type->t.symtab;
|
||||
class_Class.type = &type_Class;
|
||||
|
@ -253,8 +255,6 @@ init_classes (void)
|
|||
class_Class.methods = new_methodlist ();
|
||||
symtab_addsymbol (pr.symtab, sym);
|
||||
|
||||
chain_type (&type_ClassPtr);
|
||||
|
||||
type_Protocol.ty = ty_class;
|
||||
type_Protocol.t.class = &class_Protocol;
|
||||
chain_type (&type_Protocol);
|
||||
|
|
Loading…
Reference in a new issue